相关疑难解决方法(0)

Maven发布插件失败:源工件被部署两次

我们正在使用hudson上的maven发布插件并尝试自动执行发布过程.发布:准备工作正常.当我们尝试执行release:perform时,它会失败,因为它会尝试将源工件两次上传到存储库.

我试过的东西,

  1. 从超级pom中删除包含maven源插件的配置文件(不起作用)
  2. 将hudson上的目标指定为-P!attach-source release:prepare release:perform.我认为这将排除源插件被执行.(不工作).
  3. 尝试将插件阶段指定为超级pom中的一些不存在的阶段.(没有工作)
  4. 尝试将插件配置指定为forReleaseProfile为false.(猜猜是什么?也没用)

它仍然吐出这个错误.

[INFO] [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[INFO] [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[INFO] [DEBUG] Checking for pre-existing User-Agent configuration.
[INFO] [DEBUG] Adding User-Agent configuration.
[INFO] [DEBUG] not adding permissions to wagon connection
[INFO] Uploading: http://xx.xx.xx.xx:8081/nexus/content/repositories/releases//com/yyy/xxx/hhh/hhh-hhh/1.9.40/hhh-hhh-1.9.40-sources.jar
[INFO] 57K uploaded  (xxx-xxx-1.9.40-sources.jar)
[INFO] [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
[INFO] [DEBUG] Using Wagon implementation lightweight from default …
Run Code Online (Sandbox Code Playgroud)

java nexus maven maven-release-plugin

58
推荐指数
5
解决办法
3万
查看次数

标签 统计

java ×1

maven ×1

maven-release-plugin ×1

nexus ×1