Hi,

I have a build for a GWT module. This includes the GWT plug-in for compilation (which is slow) and selenium integration tests (slow again).

Some of the developers use m2eclipse for development, so we have configured the GWT compilation to be disabled when the m2e.version property is set (this is the only way we have found to discover the use of m2eclipse).

We would like to be able to disable either GWT compilation using -DskipGwt on the command line and/or disable selenium tests to be run using -DskipSelenium.

Our pom currently contains the following profile configuration (excluding profile details):

<profiles>
<profile>
<id>defaultGWT</id>
<activation>
<!-- <activeByDefault>true</activeByDefault> -->
<property>
<name>!m2e.version</name>
</property>
</activation>
<build>
<!-- do normal GWT compilation -->
</build>
</profile>
<!-- m2eclipse with embedded jetty -->
<profile>
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<!-- no GWT compilation plug-in -->
</profile>
<profile>
<id>skipGwt</id>
<activation>
<property>
<name>skipGwt</name>
</property>
</activation>
<build>
<!-- no GWT compilation, only GWT clean -->
</build>
</profile>

<profile>
<id>selenium-tests</id>
<activation>
<property>
<name>!skipSelenium</name>
</property>
</activation>
<build>
<!-- selenium test configuration -->
</build>
</profile>
</profiles>

Originally (before selenium test integration) the defaultGWT profile was activeByDefault, but this is disabled because of the selenium-tests profile. Most correct seems to use !skipGwt for the defaultGWT profile, but this would enable GWT compilation in m2eclipse (it seems imposible to specify extra properties to the m2eclipse plug-in).

I cannot get this to work. Does anybody have a solution to this?

I see two possible solutions, but they both seem to fail:
- define a profile which enables sets the skipGWT property when the m2e.version property is set. - use an expression like "!skipGWT && !m2e.version" for the defaultGWT profile.

What would be the "maven way" for this?


Thanks for the help,

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to