Advance antrun plugin to 3.0. Move the dynamic properties to generate-resources phase.
This commit is contained in:
parent
5a56fed612
commit
b8437f7047
34
pom.xml
34
pom.xml
|
@ -897,28 +897,14 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<version>1.7</version>
|
<version>3.0.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
|
||||||
<id>print</id>
|
|
||||||
<phase>compile</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<tasks>
|
|
||||||
<echo>******** Displaying value of *.outputDirectory properties ********</echo>
|
|
||||||
<echo>project.metainf.outputDirectory=${project.metainf.outputDirectory}</echo>
|
|
||||||
<echo>project.webinf.outputDirectory=${project.webinf.outputDirectory}</echo>
|
|
||||||
</tasks>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
<execution>
|
||||||
<id>set-vars</id>
|
<id>set-vars</id>
|
||||||
<phase>validate</phase>
|
<phase>generate-resources</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<exportAntProperties>true</exportAntProperties>
|
<exportAntProperties>true</exportAntProperties>
|
||||||
<target>
|
<target name="seOuttputDirectories">
|
||||||
<condition property="isService">
|
<condition property="isService">
|
||||||
<contains string="${project.packaging}" substring="war" />
|
<contains string="${project.packaging}" substring="war" />
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -943,6 +929,20 @@
|
||||||
<goal>run</goal>
|
<goal>run</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>print</id>
|
||||||
|
<phase>compile</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target name="printOutputDirectories">
|
||||||
|
<echo>******** Displaying value of *.outputDirectory properties ********</echo>
|
||||||
|
<echo>project.metainf.outputDirectory=${project.metainf.outputDirectory}</echo>
|
||||||
|
<echo>project.webinf.outputDirectory=${project.webinf.outputDirectory}</echo>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
Loading…
Reference in New Issue