update version get for pom

This commit is contained in:
xuechaos 2019-02-28 17:34:25 +08:00
parent 979c2bd6e1
commit 678fc8a5f7
4 changed files with 10 additions and 3 deletions

View File

@ -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{

View File

@ -1 +1 @@
${pom.version}
${project.version}

View File

@ -121,6 +121,13 @@
<exclude>static/console-fe/.vscode/**</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>nacos-version.txt</include>
</includes>
</resource>
</resources>
</build>
</project>

View File

@ -1 +1 @@
version=${pom.version}
version=${project.version}