问题描述
我正在尝试使用maven部署插件进行部署,但是部署未使用工件的正确名称
[INFO]将C:\ Users \ user \ git \ artifact \ artifact \ target \ myArtifact-0.0.10.15-SNAPSHOT.jar安装到C:\ Users \ user.m2 \ repository \ com \ my \ pc \ new \ version \ artifactId-0.0.10.jar
在编译阶段生成的工件没有问题,但是安装没有使用正确的名称,并且还使用了另一个groupid。
上传也有同样的问题,但是并没有完成,因为名称没有以快照结尾。
我的配置是
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactId>${project.artifactId}</artifactId>
<groupId>${project.groupId}</groupId>
<file>${project.name}-${project.version}.${buildNumber}-SNAPSHOT.jar</file>
<version>${project.version}.${buildNumber}</version>
<generatePom>true</generatePom>
<repositoryId>snapshot</repositoryId>
<url>http://127.0.0.1:8081/nexus/content/repositories/snapshot/</url>
<packaging>jar</packaging>
</configuration>
</plugin>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)