Uploaded image for project: 'Nuxeo Documentation'
  1. Nuxeo Documentation
  2. NXDOC-1945

Maven activeByDefault should not be used

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core Dev Guide (CORG)
    • Team:
      DevTools
    • Sprint:
      DevTools-09

      Description

      Do not use Maven activeByDefault profile feature: it is counter-intuitive and useless.

      Instead use a property activation based on the absence of the property. That fulfills the requirements without introducing weird behaviors.

      KO
           <profile>
             <id>gwt</id>
             <activation>
               <activeByDefault>true</activeByDefault>
             </activation>
           </profile> 
      OK
           <profile>
             <id>gwt</id>
             <activation>
               <property>
                 <name>!skipgwt</name>
               </property>
             </activation>
           </profile>
       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcarsique Julien Carsique
                Reporter:
                jcarsique Julien Carsique
                Participants:
                Reviewers:
                Manon Lumeau
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: