尝试将 Artifact 上传到 Nexus 时出错
Error while trying upload Artifact to Nexus
我尝试上传的是这个罐子:
https://mvnrepository.com/artifact/org.apache.maven.plugin-tools/maven-plugin-annotations/3.4
使用从此处获取的 GAV 参数(参见下面的屏幕):
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.4</version>
目前我的第 3 方没有这个版本:
我得到的是这个错误:
错误说:
Artifact upload failed.
Could not store item to repository "3rd party" [id=thirdparty], path ResourceStoreRequest{requestPath='/org/apache/maven/plugin-tools/maven-plugin-annotations/3.4/maven-plugin-annotations-3.4.pom', requestContext=RequestContext{this=org.sonatype.nexus.proxy.RequestContext@101f160e, parent=RequestContext{this=org.sonatype.nexus.proxy.RequestContext@68e0f966, parent=null}}, pathStack=[], processedRepositories=[thirdparty], appliedMappings={}}(GAVCE=org.apache.maven.plugin-tools:maven-plugin-annotations:3.4:c=null:e=pom, for "3rd party" [id=thirdparty])
Nexus 配置:
Repository Policy
: Release
Deployment Policy
: Allow Redeploy
之前我用我的帐户成功添加了许多工件。
Log
文件:
http://wklej.org/id/3074345/
我怎样才能成功上传这个神器?
诊断日志文件后:wklej。org/id/3074345
我发现 /opt/nexus/sonatype-work/nexus/storage/thirdparty/
中的某些文件已被 root
添加
所以我用命令将它们更改为用户 nexus
:
chown -R nexus:nexus maven
我尝试上传的是这个罐子: https://mvnrepository.com/artifact/org.apache.maven.plugin-tools/maven-plugin-annotations/3.4
使用从此处获取的 GAV 参数(参见下面的屏幕):
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>3.4</version>
目前我的第 3 方没有这个版本:
我得到的是这个错误:
错误说:
Artifact upload failed.
Could not store item to repository "3rd party" [id=thirdparty], path ResourceStoreRequest{requestPath='/org/apache/maven/plugin-tools/maven-plugin-annotations/3.4/maven-plugin-annotations-3.4.pom', requestContext=RequestContext{this=org.sonatype.nexus.proxy.RequestContext@101f160e, parent=RequestContext{this=org.sonatype.nexus.proxy.RequestContext@68e0f966, parent=null}}, pathStack=[], processedRepositories=[thirdparty], appliedMappings={}}(GAVCE=org.apache.maven.plugin-tools:maven-plugin-annotations:3.4:c=null:e=pom, for "3rd party" [id=thirdparty])
Nexus 配置:
Repository Policy
: Release
Deployment Policy
: Allow Redeploy
之前我用我的帐户成功添加了许多工件。
Log
文件:
http://wklej.org/id/3074345/
我怎样才能成功上传这个神器?
诊断日志文件后:wklej。org/id/3074345
我发现 /opt/nexus/sonatype-work/nexus/storage/thirdparty/
中的某些文件已被 root
添加
所以我用命令将它们更改为用户 nexus
:
chown -R nexus:nexus maven