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

This commit is contained in:
Manuele Simi 2020-09-27 22:57:58 -04:00
parent 5a56fed612
commit b8437f7047
1 changed files with 17 additions and 17 deletions

34
pom.xml
View File

@ -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>