【发布时间】:2015-10-09 04:57:32
【问题描述】:
我正在尝试将 svn 修订号添加到 MANIFEST 文件。我的根 pom.xml 中有这个:
<plugin>
<groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
<artifactId>svn-revision-number-maven-plugin</artifactId>
<version>1.13</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<entries>
<entry>
<prefix>svn</prefix> <!-- create the ${svn.revision} -->
</entry>
</entries>
</configuration>
<dependencies>
<dependency>
<groupId>org.tmatesoft.svnkit</groupId>
<artifactId>svnkit</artifactId>
<version>1.7.4-v1</version>
</dependency>
<dependency>
<groupId>org.tmatesoft.sqljet</groupId>
<artifactId>sqljet</artifactId>
<version>1.1.9</version>
</dependency>
</dependencies>
</plugin>
我正在尝试在我的耳朵 pom.xml 中添加 svn 修订:
<archive>
<manifestEntries>
<Specification-Title>${project.name}</Specification-Title>
<Specification-Version>${svn.revision}</Specification-Version>
<Implementation-Version>${build.number}</Implementation-Version>
</manifestEntries>
</archive>
我没有在 MANIFEST 文件中获得任何版本。关于我做错了什么的任何想法?
Manifest-Version: 1.0
Implementation-Version: 273
Built-By: adelina.dimachi
Build-Jdk: 1.6.0_45
Specification-Title: MyProjectName
Created-By: Apache Maven 3.2.1
**Specification-Version:**
Archiver-Version: Plexus Archiver
【问题讨论】:
标签: java maven tortoisesvn version manifest