Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improve]Use maven revision to manage project version #310

Merged
merged 1 commit into from
Jul 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ test/coverage

front/
node/

*.flattened-pom.xml
2 changes: 1 addition & 1 deletion datasophon-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.datasophon</groupId>
<artifactId>datasophon</artifactId>
<version>1.1.1</version>
<version>${revision}</version>
</parent>

<artifactId>datasophon-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion datasophon-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.datasophon</groupId>
<artifactId>datasophon</artifactId>
<version>1.1.1</version>
<version>${revision}</version>
</parent>

<artifactId>datasophon-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion datasophon-dao/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.datasophon</groupId>
<artifactId>datasophon</artifactId>
<version>1.1.1</version>
<version>${revision}</version>
</parent>

<artifactId>datasophon-dao</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion datasophon-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.datasophon</groupId>
<artifactId>datasophon</artifactId>
<version>1.1.1</version>
<version>${revision}</version>
</parent>

<artifactId>datasophon-ui</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion datasophon-worker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.datasophon</groupId>
<artifactId>datasophon</artifactId>
<version>1.1.1</version>
<version>${revision}</version>
</parent>

<artifactId>datasophon-worker</artifactId>
Expand Down
29 changes: 28 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<groupId>com.datasophon</groupId>
<artifactId>datasophon</artifactId>
<version>1.1.1</version>
<version>${revision}</version>
<packaging>pom</packaging>
<description>It is committed to rapidly implementing the deployment, management, monitoring and automatic operation
and maintenance of the big data cloud native platform, helping you quickly build a stable, efficient, elastic
Expand All @@ -35,6 +35,7 @@
</modules>

<properties>
<revision>1.1.1</revision>
<akka.version>2.4.20</akka.version>
<commons.httpclient>3.0.1</commons.httpclient>
<commons.lang>2.6</commons.lang>
Expand Down Expand Up @@ -274,6 +275,32 @@
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.5.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>

</build>
Expand Down