我使用build-helper-maven-plugin与attach-artifact目标添加自定义的jar文件的Nexus,旁边的EAR文件。构建完成后,jar 文件就在那里,但没有保留它的原始名称,而是将其重命名为<project_name>-ear-<version>-<timestamp>.jar. 我能做些什么来保留它的原始名称,即配置 Maven 以保留该名称?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.9.1</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>../xxx/src/main/resources/lib/DbSynchronizer.jar</file>
<type>jar</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2219 次 |
| 最近记录: |