You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2022/11/04 14:32:13 UTC

[incubator-hugegraph-toolchain] branch flat updated: chore: enable flatten while building

This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch flat
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-toolchain.git


The following commit(s) were added to refs/heads/flat by this push:
     new 4fc39d47 chore: enable flatten while building
4fc39d47 is described below

commit 4fc39d47710aeee239bb9b33bdb2d70460c43b18
Author: imbajin <ji...@apache.org>
AuthorDate: Fri Nov 4 22:31:56 2022 +0800

    chore: enable flatten while building
---
 .gitignore |  1 +
 pom.xml    | 26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/.gitignore b/.gitignore
index f6fd8bbf..1fbbb5aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -83,6 +83,7 @@ output/
 *.tar.gz
 tree.txt
 *.versionsBackup
+.flattened-pom.xml
 
 # eclipse ignore
 .settings/
diff --git a/pom.xml b/pom.xml
index e1f2eebe..0de082db 100644
--- a/pom.xml
+++ b/pom.xml
@@ -412,10 +412,36 @@
                         <exclude>**/META-INF/MANIFEST.MF</exclude>
                         <!-- Maven -->
                         <exclude>.repository/**</exclude>
+                        <exclude>**/.flattened-pom.xml</exclude>
                     </excludes>
                     <consoleOutput>true</consoleOutput>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>flatten-maven-plugin</artifactId>
+                <version>1.3.0</version>
+                <configuration>
+                    <updatePomFile>true</updatePomFile>
+                    <flattenMode>resolveCiFriendliesOnly</flattenMode>
+                </configuration>
+                <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>
+            </plugin>
         </plugins>
 
 <!--        <testResources>-->