Hi, It depends if you want to run exec during prepare or during release.
If you want to run it only during prepare phase put it in a profile and pass that profile as argument to release:prepare goal If you want to run it during release:perform put it in release profile and enable release profile <releaseProfiles>release</releaseProfiles> Regards, Prashant Bhate On Tue, Sep 14, 2010 at 11:58 AM, C. Benson Manica <[email protected]>wrote: > (Asking this question again in a different form, since I feel like there > *has* to be an answer...) > > I have a Maven project that invokes exec-maven in the prepare-package > phase, > as below, so that its work is done for package creation. That all works > fine, deployment also works fine, but my issue is that exec-maven is > invoked > both during release:prepare and release:perform. This execution takes a > long time, so invoking it twice is really not at all desirable. How can I > configure the release plugin so that it doesn't cause this execution to be > invoked twice during the release process? > > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>exec-maven-plugin</artifactId> > <version>1.1.1</version> > <executions> > <execution> > <id>Foo</id> > <phase>prepare-package</phase> > <goals> > <goal>exec</goal> > </goals> > <configuration> > > <executable>${env.JAVA_HOME}/bin/java</executable> > ... > </configuration> > </execution> > </executions> > </plugin> > </plugins> > > > -- > C. Benson Manica > [email protected] >
