Commit ba8388bb authored by liaozan's avatar liaozan 🏀

Apply maven plugin configurations to all goals

parent 6410a840
...@@ -674,6 +674,11 @@ ...@@ -674,6 +674,11 @@
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId> <artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version> <version>${flatten-maven-plugin.version}</version>
<configuration>
<updatePomFile>true</updatePomFile>
<outputDirectory>${project.build.directory}</outputDirectory>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions> <executions>
<execution> <execution>
<id>flatten</id> <id>flatten</id>
...@@ -681,23 +686,19 @@ ...@@ -681,23 +686,19 @@
<goal>flatten</goal> <goal>flatten</goal>
</goals> </goals>
<phase>process-resources</phase> <phase>process-resources</phase>
<configuration> </execution>
<updatePomFile>true</updatePomFile> <execution>
<outputDirectory>${project.build.directory}</outputDirectory> <id>clean</id>
<flattenMode>resolveCiFriendliesOnly</flattenMode> <goals>
</configuration> <goal>clean</goal>
</goals>
<phase>clean</phase>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration> <configuration>
<rules> <rules>
<requireJavaVersion> <requireJavaVersion>
...@@ -706,6 +707,12 @@ ...@@ -706,6 +707,12 @@
</requireJavaVersion> </requireJavaVersion>
</rules> </rules>
</configuration> </configuration>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment