<plugin> <artifactId>${release.artifactId}</artifactId> <version>${release.version}-${release.svm.version}</version>...
參考博文:app
http://stackoverflow.com/questions/24206013/how-to-pass-parameters-to-maven-build-using-pom-xmlmaven
Actually in my application I need to save and supply SVN Version as parameter so i have implemented as above .ui
While Running build we need supply value for those parameter as follows.code
RestProj_Bizs>mvn clean install package -Drelease.artifactId=RestAPIBiz -Drelease.version=10.6
實際上能夠經過mvn 後面加 -DXXX=XXX 來指定參數。xml