Is there a way to change modulse to run during execution of Maven?

2006-08-30 Thread S . Bloch
Hi, I'm using Maven2. Is there a way to change modulse to run during execution of Maven? I need to be able to set if some modules are to be run. For example: I have got 3 modules and a plugin: plugin module1 module2 module3 There is a plugin that checks few things and decides that module2 sh

Is there a way to access MavenSession, PlexusContainer from plugin?

2006-08-22 Thread S . Bloch
Hi, Is there a way to access MavenSession, PlexusContainer or any other object from within pugin, that could give me acces to Lifecycle. I need to create plugin that would stop executing other phases in current project and let it go to the parent project depending on some circumstance. Thanks

How to access dependency from pom.xml in my plugin??

2006-07-06 Thread S . Bloch
Hi, I've got a problem. I'm using org.codehaus.plexus.util.cli.Commandline to execute java, but to do it i need to add tools.jar as a argument. How to access this jar using dependency from my pom.xml?? Pozdrawiam Sebastian Błoch - - - - - - - - - - - - - - - - - - - - - - - - - - - - Configura

project.getDependencyArtifacts()=null and project.getArtifacts()=nuul

2006-01-23 Thread S . Bloch
Hi I'm writing my firs plugin. I don't know how to access libs defined in dependency. i've tried getDependencyArtifacts() and getArtifacts() but null was the result. Any suggestions? Pozdrawiam Sebastian Błoch