Hi Stefan,
> From: VUB Stefan Seidel [wrote]
> Sent: Monday, June 11, 2007 1:35 AM
> To: [email protected]
> Subject: Re: [m2eclipse-user] Profile dependencies
>
> What exactly do you want to achieve?
I was trying to active dependencies declared in a profile.
> What are the error
> messages/what doesn't work?
No error messages, the dependencies just did not show up in the "Maven
Dependencies" container within eclipse. Not sure if I made an error or
perhaps upgrading to a build from trunk fixed things...
> You can add options to the maven
> "command line" within eclipse using the "Maven build ..."
> command. In the window there you can specify goals, profiles
> and additional parameters.
>
Right. ....
I've upgraded to a build of m2eclipse from head and my profile is now
getting activated, AND they (the dependencies) show up in "Maven
Dependencies" classpath container too!
The next question is, how can I set a system property that activates
different profiles into Eclipse itself.
One Answer: by adding -vmargs -Dwas6=true
E.g: My commandline is now
C:\IBM\SDP70\eclipse.exe -product com.ibm.rational.rad.product.ide
-vmargs -Dwas6=true
This sets the system property was6=true on eclipse vm thus when the pom
is evaluated my profile is activated (this is great.)
One nit: The "Maven Dependencies" cp container is not re-evaluate until
I save the pom again. It would be nice if the POM (profile elements)
were re-evaluated at startup.
It would a nice to have also if you could manipulate the activated
profiles in some way without restarting and having to pass Eclipse
-vmargs. Any thoughts on achieving this?
> The embedded maven in the plugin will probably for some time
> still show slightly different behaviour from the mainstream,
> because it is a 2.1-SNAPSHOT, whereas in production
> environment ususally 2.0.x is in use.
Ah. That's good to know.
>
> regards,
>
> Stefan
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email