Re: Same plugin, different phases

2009-11-04 Thread Gajo Csaba
Ah ok, got it to work. Looks like I needed to define a global execution as well - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: Same plugin, different phases

2009-11-04 Thread Jörg Schaible
Hi Csaba, Gajo Csaba wrote at Mittwoch, 4. November 2009 13:29: > Hello, > > I use the exec plugin, and I need to pass it different parameters based > on the target I define. So for example, if I write mvn test, then exec > should forward one set of arguements to the command it executes, and if

Re: Same plugin, different phases

2009-11-04 Thread Gajo Csaba
If I put the configuration element inside the execution element, I get an error saying that it needs to be inside the plugin element. This is what I've tried: org.codehaus.mojo exec-maven-plugin 1.1 test

Re: Same plugin, different phases

2009-11-04 Thread Anders Hammar
Most likely you've put the configuration element wrong. It should be inside the execution section. /Anders 2009/11/4 Gajo Csaba > Hello, > > I use the exec plugin, and I need to pass it different parameters based on > the target I define. So for example, if I write mvn test, then exec should >

Same plugin, different phases

2009-11-04 Thread Gajo Csaba
Hello, I use the exec plugin, and I need to pass it different parameters based on the target I define. So for example, if I write mvn test, then exec should forward one set of arguements to the command it executes, and if I write mvn compile, then it sends another arguement. How to do this?