Hi Everyone, My aim is to run a shell script during the compilation/package phase within the war project's pom file. I want to run the script only once. I am pretty new to maven and i was able to do something close to that with the below script. Now this code executes during both the compilation and package phase. how do i limit this to run only during one of the phases? Any help will be greatly appreciated.
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>DojoBuild</id>
<phase>generate-sources</phase>
<configuration>
<target>
<chmod
file="dojobuild.ksh" perm="ugo+rx"/>
<exec
executable="/bin/ksh">
<arg value="dojobuild.ksh"/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
--
View this message in context:
http://maven.40175.n5.nabble.com/How-to-execute-an-external-script-within-war-s-pom-file-tp5480228p5480228.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
