On 9/27/07, Steinar Bang <[EMAIL PROTECTED]> wrote:
> >>>>> "Tomasz Pik" <[EMAIL PROTECTED]>:
>
> > Configure plugins in profiles in parent pom and activate profiles in
> > child poms? This won't be automatic (I do not know if there's a way
> > to activate profile using packaging, maybe there's?) - you'll need
> > to add avtivation to child poms but should solve problem with
> > storing configuration in one place.
>
> Yes, I was wondering about if profiles could be triggered by
> packaging, and if that was a way to go...?
a bit strange thing...
this do not work for me (in fact, as expected):
<profile>
<id>xxx</id>
<activation>
<property>
<name>${pom.packaging}</name>
<value>war</value>
</property>
</activation>
this works:
<profile>
<id>xxx</id>
<activation>
<file>
<exists>src/main/webapp/WEB-INF/web.xml</exists>
</file>
</activation>
so maybe you may distinguish by looking for a particular file
(dedicated MANIFEST?).
the strange thing is that this is not working:
<profile>
<id>xxx</id>
<activation>
<file>
<exists>${basedir}/src/main/webapp/WEB-INF/web.xml</exists>
</file>
</activation>
and I do not know why, maybe somebody knows (mvn 2.0.6).
HTH,
Regards,
Tomek
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]