瀏覽代碼

新增 flatten-maven-plugin 插件

hubin 1 年之前
父節點
當前提交
49fb1483dc
共有 1 個文件被更改,包括 26 次插入0 次删除
  1. 26 0
      pom.xml

+ 26 - 0
pom.xml

@@ -184,6 +184,32 @@
                     <target>${java.version}</target>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>flatten-maven-plugin</artifactId>
+                <version>1.5.0</version>
+                <executions>
+                    <execution>
+                        <id>flatten</id>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>flatten</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>flatten.clean</id>
+                        <phase>clean</phase>
+                        <goals>
+                            <goal>clean</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <inherited>true</inherited>
+                <configuration>
+                    <updatePomFile>true</updatePomFile>
+                    <flattenMode>resolveCiFriendlies0nly</flattenMode>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 </project>