chore: add flatten plugin and fix dependency version

* build: add flatten plugin and fix dependency version

* Update pom.xml

---------

Co-authored-by: imbajin <jin@apache.org>
This commit is contained in:
V_Galaxy 2023-06-27 23:44:24 +08:00
parent 1252f5097c
commit 8c03d72744
11 changed files with 53 additions and 15 deletions

1
.gitignore vendored
View File

@ -50,3 +50,4 @@ dist/
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/logs/
.flattened-pom.xml

View File

@ -23,6 +23,7 @@
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-store-root</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -21,9 +21,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.hugegraph</groupId>
<parent>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-store-root</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hg-store-client</artifactId>
<version>${revision}</version>
<properties>
<maven.compiler.source>11</maven.compiler.source>

View File

@ -26,6 +26,7 @@
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-store-root</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hg-store-common</artifactId>

View File

@ -24,6 +24,7 @@
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-store-root</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hg-store-core</artifactId>
@ -47,7 +48,7 @@
<dependency>
<groupId>com.alipay.sofa</groupId>
<artifactId>jraft-core</artifactId>
<version>1.3.9-hg-SNAPSHOT</version>
<version>1.3.9</version>
<exclusions>
<exclusion>
<groupId>org.rocksdb</groupId>
@ -127,12 +128,6 @@
<artifactId>hg-store-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.scan</groupId>
<artifactId>safesdk-java</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
</project>

View File

@ -24,6 +24,7 @@
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-store-root</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -21,9 +21,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.hugegraph</groupId>
<parent>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-store-root</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hg-store-grpc</artifactId>
<version>${revision}</version>
<properties>
<maven.compiler.source>11</maven.compiler.source>

View File

@ -25,6 +25,7 @@
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-store-root</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hugegraph-store</artifactId>

View File

@ -25,6 +25,7 @@
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-store-root</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hg-store-rocksdb</artifactId>
@ -33,7 +34,7 @@
<dependency>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-common</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<exclusions>
<exclusion>
<groupId>org.glassfish.jersey.inject</groupId>

View File

@ -23,6 +23,7 @@
<artifactId>hugegraph-store-root</artifactId>
<groupId>org.apache.hugegraph</groupId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
@ -192,7 +193,7 @@
<dependency>
<groupId>com.alipay.sofa</groupId>
<artifactId>jraft-core</artifactId>
<version>1.3.9-hg-SNAPSHOT</version>
<version>1.3.9</version>
<exclusions>
<exclusion>
<groupId>org.rocksdb</groupId>

30
pom.xml
View File

@ -42,14 +42,15 @@
<module>hg-store-node</module>
<module>hg-store-dist</module>
<module>hg-store-cli</module>
<module>hg-store-test</module>
<!-- TODO: exclude it for build first -->
<!-- <module>hg-store-test</module>-->
</modules>
<properties>
<revision>1.5.0</revision>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<hugegraph.server.version>3.6.4-SNAPSHOT</hugegraph.server.version>
<hugegraph.server.version>1.5.0</hugegraph.server.version>
<log4j2.version>2.15.0</log4j2.version>
</properties>
@ -127,6 +128,31 @@
</execution>
</executions>
</plugin>
<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>
<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>
</build>