Activate different Maven profiles depending on current module?
Posted
by Yaba
on Stack Overflow
See other posts from Stack Overflow
or by Yaba
Published on 2009-06-19T15:52:06Z
Indexed on
2010/03/16
19:21 UTC
Read the original article
Hit count: 353
We have a multi module build with modules using different technologies, like Java and Flex. Is it somehow possible to activate different profiles based on the module that is compiled currently?
I tried it with an activation like
<profile>
<id>flex</id>
<activation>
<file>
<exists>${basedir}/src/main/flex</exists>
</file>
</activation>
...
</profile
But it didn't work, although the use of ${basedir} is documented in the Maven documentation (this is a bug in Maven). Is there a different possibility to have different activations based on the current module? Or does Maven only allow to activate a profile for all modules or not at all?
© Stack Overflow or respective owner