Maven 2 & 3

Mention 'activeByDefault' in the "Introduction to Build Profiles" guide

Details

  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

It appears to be that the primary use-case for someone considering profiles would be the requirement to modify an existing build in some way to accomodate a 'special-case'. As such, it seems to me that a mention of the activation option 'activeByDefault' should be added.
At present, the document implies that there either needs to be a change in the command line (e,g, "-Denv-prod") or some form of environment parsing to have the build run as before, whereas 'activeByDefault' show that's not so but is not mentioned.

Activity

Hide
Olav Reinert added a comment -

Also, the current description of 'activeByDefault' in the POM reference (http://maven.apache.org/ref/current/maven-model/maven.html) is sort of misleading, I find. At least, it doesn't add any value beside what the tag name itself offers: "Flag specifying whether this profile is active by default."

Diving a bit deeper (i.e., reading the discussions in related bug reports, such as MNG-835 and MNG-2136) it becomes clear that the semantics of 'activeByDefault' are not entirely trivial. The tag makes sense to have, and it's useful, but unfortunately it remains largely undocumented...

Show
Olav Reinert added a comment - Also, the current description of 'activeByDefault' in the POM reference (http://maven.apache.org/ref/current/maven-model/maven.html) is sort of misleading, I find. At least, it doesn't add any value beside what the tag name itself offers: "Flag specifying whether this profile is active by default." Diving a bit deeper (i.e., reading the discussions in related bug reports, such as MNG-835 and MNG-2136) it becomes clear that the semantics of 'activeByDefault' are not entirely trivial. The tag makes sense to have, and it's useful, but unfortunately it remains largely undocumented...
Hide
Paul Gier added a comment -

Added some notes about activeByDefault to the site, and added a better description of activeByDefault to the model.

Show
Paul Gier added a comment - Added some notes about activeByDefault to the site, and added a better description of activeByDefault to the model.
Hide
John Casey added a comment -

Adding fix-for for both 2.0.10 and 2.1.0-M1, since 2.1.0-M1 will actually be released first and may not incorporate all of the eventual issue fixes released in 2.0.10.

Show
John Casey added a comment - Adding fix-for for both 2.0.10 and 2.1.0-M1, since 2.1.0-M1 will actually be released first and may not incorporate all of the eventual issue fixes released in 2.0.10.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: