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,31 +686,33 @@ ...@@ -681,31 +686,33 @@
<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>
<configuration>
<rules>
<requireJavaVersion>
<version>${java.version}</version>
<message>需要 Java${java.version} 及以上的版本, 请检查 Java 版本设置</message>
</requireJavaVersion>
</rules>
</configuration>
<executions> <executions>
<execution> <execution>
<id>enforce-java</id> <id>enforce-java</id>
<goals> <goals>
<goal>enforce</goal> <goal>enforce</goal>
</goals> </goals>
<configuration>
<rules>
<requireJavaVersion>
<version>${java.version}</version>
<message>需要 Java${java.version} 及以上的版本, 请检查 Java 版本设置</message>
</requireJavaVersion>
</rules>
</configuration>
</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