Call Ant from Maven (for GM)

This commit is contained in:
Chris Ward 2013-10-19 20:31:09 +11:00 committed by KHobbits
parent 48261daf89
commit 3e9a2377a8

36
pom.xml
View file

@ -94,6 +94,34 @@
<target>1.6</target> <target>1.6</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
<configuration>
<target name="buildgm">
<ant dir="EssentialsGroupManager" antfile="build.xml"/>
</target>
</configuration>
<inherited>false</inherited>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
@ -139,15 +167,14 @@
</artifactItem> </artifactItem>
</artifactItems> </artifactItems>
</configuration> </configuration>
<inherited>false</inherited>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>2.6</version> <version>2.6</version>
<executions> <executions>
<execution> <execution>
<id>copy-resources</id> <phase>package</phase>
<!-- here the phase you need -->
<phase>validate</phase>
<goals> <goals>
<goal>copy-resources</goal> <goal>copy-resources</goal>
</goals> </goals>
@ -176,6 +203,7 @@
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
<inherited>false</inherited>
</plugin> </plugin>
<plugin> <plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId> <groupId>com.google.code.maven-replacer-plugin</groupId>
@ -190,7 +218,7 @@
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<filesToInclude>**/src/*</filesToInclude> <filesToInclude>src/*</filesToInclude>
<replacements> <replacements>
<replacement> <replacement>
<token>TeamCity</token> <token>TeamCity</token>