Javier Diaz wrote:
Sorry for the misunderstanding. It's not a general Ant or Maven question.
The m2eclipse plugin adds to the java launcher's classpath the maven dependencies. I need the same but for Maven Launcher.
 Sorry, I don't understand what you are referring to here.
It is true that m2eclipse manages runtime classpath for the Java Application launch configuration if project have Maven support enabled. There is also Maven launch configuration contributed by m2eclipse, but it doesn't have any classpath. It is simply delegating execution to the Maven tool. Basically it would work the same way when executed from the command line (with some minor differences) and it is up to the user what is being executed and how dependencies and plugins are configured in the pom.xml linked with the Maven launch configuration.
In our project there are some user defined tasks. This tasks use some libraries. To run our tasks in eclipse we use the Ant Launcher and add to the classpath all our libraries.
 I don't understand this one either. Are you launching Ant in Eclipse?
If you want to use Maven, then why you are not using Maven goals? Note that Ant can be invoked from the Maven build, but if you are want to follow Maven best practices, it is better to replace Ant stuff with the real Maven plugins.
Now, with maven, the libraries are defined in the repository.

Hope this makes the situation a little bit more clear.
 Unfortunately not to me.

 regards,
 Eugene



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to