beg*_*er_ 4 mercurial maven build-numbers
我正试图在清单中获得mercurial修订号.我已阅读以下说明:
http://maven.apache.org/plugin-developers/cookbook/add-svn-revision-to-manifest.html
我没有收到错误消息,但清单中的SCM-Revision属性始终为空.
POM部分:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>hgchangeset</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>true</doUpdate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<SCM-Revision>${buildNumber}</SCM-Revision>
</manifestEntries>
</archive>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
归档时间: |
|
查看次数: |
1630 次 |
最近记录: |