Is it possible to activate multiple profiles at once, as in 'mvn
-Pprofile1 -Pprofile2', and have one profile override properties in the
other? I'm trying to make it easy to enable p6spy, something like
<profiles>
<profile>
<id>hsql</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<databaseType>hsqldb</databaseType>
<databaseDriver>org.hsqldb.jdbcDriver</databaseDriver>
...
</properties>
</profile>
<profile>
<id>postgres</id>
<properties>
<databaseType>postgresql</databaseType>
<databaseDriver>org.postgresql.Driver</databaseDriver>
...
</properties>
</profile>
<profile>
<id>p6spy</id>
<properties>
<databaseDriver>...P6SpyDriver</databaseDriver>
</properties>
</profile>
</profiles>
the idea being that you can switch databases with '-Ppostgres' and
enable P6Spy for either database with, for example, '-Ppostgres -Pp6spy'.
Unfortunately, it seems that Maven only sets the properties defined in
*one* of the two profiles. Is there a way to get both?
Alternatively, is there another way to conditionally set properties in M2?
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]