From 678fc8a5f796caa6a68577568ecb8d84157af427 Mon Sep 17 00:00:00 2001 From: xuechaos Date: Thu, 28 Feb 2019 17:34:25 +0800 Subject: [PATCH] update version get for pom --- .../java/com/alibaba/nacos/common/util/VersionUtils.java | 2 +- config/src/main/resources/version/version.txt | 2 +- console/pom.xml | 7 +++++++ console/src/main/resources/nacos-version.txt | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/alibaba/nacos/common/util/VersionUtils.java b/common/src/main/java/com/alibaba/nacos/common/util/VersionUtils.java index 5609aa63c..4877085a2 100644 --- a/common/src/main/java/com/alibaba/nacos/common/util/VersionUtils.java +++ b/common/src/main/java/com/alibaba/nacos/common/util/VersionUtils.java @@ -11,7 +11,7 @@ public class VersionUtils { public static String VERSION; /**获取当前version*/ - public static final String VERSION_DEFAULT = "${pom.version}"; + public static final String VERSION_DEFAULT = "${project.version}"; static{ diff --git a/config/src/main/resources/version/version.txt b/config/src/main/resources/version/version.txt index 17851514a..ad96e7cf9 100755 --- a/config/src/main/resources/version/version.txt +++ b/config/src/main/resources/version/version.txt @@ -1 +1 @@ -${pom.version} \ No newline at end of file +${project.version} diff --git a/console/pom.xml b/console/pom.xml index e5b0fe732..54a3e13b8 100644 --- a/console/pom.xml +++ b/console/pom.xml @@ -121,6 +121,13 @@ static/console-fe/.vscode/** + + src/main/resources + true + + nacos-version.txt + + diff --git a/console/src/main/resources/nacos-version.txt b/console/src/main/resources/nacos-version.txt index ae1ef5aa0..defbd4820 100755 --- a/console/src/main/resources/nacos-version.txt +++ b/console/src/main/resources/nacos-version.txt @@ -1 +1 @@ -version=${pom.version} +version=${project.version}