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}