Take a look at the profiles :
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
I think the dependenciesManagement section is what you are looking for.
On 3/31/06, Mikael Andersson <[EMAIL PROTECTED]> wrote:
> 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
>
>
--
Alexandre Poitras
Québec, Canada
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]