Hi,
I have a pom used with the jetty6 plugin and myfaces (via the archetype),
for the jetty plugin to work properly I had to change from provided to
compile for a depency and add a couple of tomcat jars.

I wonder if there is a nice and simple way of changing the scope of certain
dependencies without editing the pom file all the time, like using profiles
or environment variables? Otherwise I will probably forget to change the pom
and bundle those jars with the war running on tomcat :(

Had a quick go with -DscopeVal=compile and then in the pom
<scope>${scopeVal}</scope> , which failed. I am relatively new to maven2 and
not that familiar with the more advanced stuff, so help please :)

Thanks,
 Micke

Reply via email to