替换maven中的版本
replace version in maven
我的 pom.xml:
中有这段代码
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
<finalName>bonanza-{version}</finalName>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
但是{version}没有替换为项目的版本
<groupId>com.bonanza</groupId>
<artifactId>bonanza-lines</artifactId>
<version>2.0.0</version>
我觉得应该是${project.version}
我的 pom.xml:
中有这段代码<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
<finalName>bonanza-{version}</finalName>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
但是{version}没有替换为项目的版本
<groupId>com.bonanza</groupId>
<artifactId>bonanza-lines</artifactId>
<version>2.0.0</version>
我觉得应该是${project.version}