官方文档对快照版本和发布版本是这样介绍的
Versioning / Releases
Update the version number of the project
mvn release:update-versions -DautoVersionSubmodules=true -Dnoredist 
-Pdeps,developer -DdevelopmentVersion=<version>-SNAPSHOT
Releases can also be done using the release plugin. This plugin will 
automagically take care of setting the currect version (removing the 
-SNAPSHOT), making a tag in SCM and deploying the jars to the maven repository. 
This should only be executed by the release engineer. Maven assumes that once a 
version is released it will never change anymore and released binaries will 
never be updated, so any subsequent releases will have to bump the version 
number.


按照官方说法,在代码根目录执行上面的命令,修改-DdevelopmentVersion=4.4.1,这样打包的应该是发布的版本,打包完的RPM包应该就不再包含SNAPSHOT字样,但实际情况是这条命令运行后,打完的包仍然包含SNAPSHOT字样



yan_5...@163.com

回复