java - Maven nexus-staging-maven-plugin 未正确部署
问题描述
我正在尝试使用 Maven 部署插件进行部署,但部署没有使用正确的工件名称
[信息] 安装 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>
解决方案
推荐阅读
- node.js - 当我查询 Alexa 可检索属性时如何解决“它不支持”
- c - 在 shm_open() 之后使用 fallocate() 会导致在 shm_unlink() 之后内存没有被释放
- javascript - 用复杂的数组构建复杂的胡须或车把
- angular - 来自子组件元素的活动父组件选项卡 ngxbootstrap 选项卡:角度 6
- c++ - 使用函数 findchessboardcorners() 运行错误 xmemory()?
- rethinkdb - 比较索引函数和 JavaScript 函数?
- c# - 如何同步 ListView 中的选定项目和选中项目?
- android - org.gradle.api.ProjectConfigurationException:配置项目“:app”时出现问题
- python - 模型字段在第一次保存时不会更新
- amazon-web-services - AWS API 网关可以调用多个 lambda 函数吗?