ソースを参照

Activate flatten maven plugin

Dominik Fuchß 4 年 前
親
コミット
69db96882a
2 ファイル変更、31 行追加、0 行削除
  1. 1 0
      .gitignore
  2. 30 0
      pom.xml

+ 1 - 0
.gitignore

@@ -21,3 +21,4 @@ hs_err_pid*
 # intelliJ
 # intelliJ
 .idea/
 .idea/
 *.iml
 *.iml
+.flattened-pom.xml

+ 30 - 0
pom.xml

@@ -191,6 +191,32 @@
     <build>
     <build>
         <pluginManagement>
         <pluginManagement>
             <plugins>
             <plugins>
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>flatten-maven-plugin</artifactId>
+                    <version>1.2.7</version>
+                    <configuration>
+                        <updatePomFile>true</updatePomFile>
+                        <flattenMode>resolveCiFriendliesOnly</flattenMode>
+                    </configuration>
+                    <executions>
+                        <execution>
+                            <id>flatten</id>
+                            <goals>
+                                <goal>flatten</goal>
+                            </goals>
+                            <phase>process-resources</phase>
+                        </execution>
+                        <execution>
+                            <id>flatten.clean</id>
+                            <goals>
+                                <goal>clean</goal>
+                            </goals>
+                            <phase>clean</phase>
+                        </execution>
+                    </executions>
+                </plugin>
+
                 <plugin>
                 <plugin>
                     <groupId>com.helger.maven</groupId>
                     <groupId>com.helger.maven</groupId>
                     <artifactId>ph-javacc-maven-plugin</artifactId>
                     <artifactId>ph-javacc-maven-plugin</artifactId>
@@ -267,6 +293,10 @@
             </plugins>
             </plugins>
         </pluginManagement>
         </pluginManagement>
         <plugins>
         <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>flatten-maven-plugin</artifactId>
+            </plugin>
             <plugin>
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>build-helper-maven-plugin</artifactId>
                 <artifactId>build-helper-maven-plugin</artifactId>