Advance antrun plugin to 3.0. Move the dynamic properties to generate-resources phase.

fix/19854
Manuele Simi 4 years ago
parent 5a56fed612
commit b8437f7047

@ -897,28 +897,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<version>3.0.0</version>
<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>
<id>set-vars</id>
<phase>validate</phase>
<phase>generate-resources</phase>
<configuration>
<exportAntProperties>true</exportAntProperties>
<target>
<target name="seOuttputDirectories">
<condition property="isService">
<contains string="${project.packaging}" substring="war" />
</condition>
@ -943,6 +929,20 @@
<goal>run</goal>
</goals>
</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>
</plugin>
<plugin>

Loading…
Cancel
Save