tbroyer / gwt-maven-archetypes

Apache License 2.0
152 stars 39 forks source link

Use properties for profile activation and initial README #8

Closed jgonian closed 12 years ago

jgonian commented 12 years ago

Found this issue when I first tried to use the archetype in a clean workspace following your post.

When you run the second step (mvn package -Pdraft) the activeByDefault profile is not activated and the build fails. This is documented behavior (see: http://jira.codehaus.org/browse/MNG-4917) and generally speaking is considered a better practice to explicitly activate your profiles.

The first commit makes prod and dev mutual exclusive. When the system property -Ddev is present only dev profile is activated and when the property is missing only prod profile is activated "by default".

a14n commented 12 years ago

+1, I wanted to do the same pull request today (for activation with property).

jgonian commented 12 years ago

+1, by using the draft profile when building the project, the build is 40% faster.