Nexus Artefact上传失败

时间:2018-01-17 13:44:03

标签: maven nexus maven-deploy-plugin

使用maven deploy命令,我尝试在Nexus存储库(Nexus版本:nexus-professional-2.13.0-01)上传大小(440 MB)的人工制品。 Maven版本是3.5.2。在settings.xml中配置了我的代理服务器详细信息

mvn -e -X deploy:deploy-file -DgroupId=de.test.oca -DartifactId=wildfly-image  -Dversion=0.0.1-SNAPSHOT -Dpackaging=tar.gz -Dfile=oca-wildfly-image-0.0.1-snapshot.tar.gz -DrepositoryId=oca-snapshots -Durl=http://xx.xx.xx:8081/nexus/content/repositories/oca-snapshots 

错误讯息:

Uploaded to oca-snapshots: http://xx.xx.xx:8081/nexus/content/repositories/oca-snapshots/de/test/oca/wildfly-image/0.0.1-SNAPSHOT/wildfly-image-0.0.1-20180117.094348-1.pom (446 B at 1.2 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:07 min
[INFO] Finished at: 2018-01-17T10:50:54+01:00
[INFO] Final Memory: 10M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact de.test.oca:wildfly-image:tar.gz:0.0.1-20180117.094348-1 from/to oca-snapshots (http://xx.xx.xx:8081/nexus/content/repositories/oca-snapshots): Connection reset -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact de.test.oca:wildfly-image:tar.gz:0.0.1-20180117.094348-1 from/to oca-snapshots (http://xx.xx.xx:8081/nexus/content/repositories/oca-snapshots): Connection reset

在Nexus GUI中,我可以找到上传的tar.gz文件。当我检查nexus.log时,我发现错误信息为

jvm 1    | 2018-01-17 14:27:17,706+0100 INFO  [qtp1148931253-265705] admin com.sonatype.nexus.plugins.outreach.internal.outreach.SonatypeOutreach - Could not download page bundle
jvm 1    | org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
jvm 1    | 2018-01-17 14:27:47,710+0100 INFO  [qtp1148931253-265708] admin com.sonatype.nexus.plugins.outreach.internal.outreach.SonatypeOutreach - Could not download page bundle
jvm 1    | org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool

我尝试上传另一个文件sizw为300MB的文件,它运行正常。

Nexus中是否有任何文件大小限制。

1 个答案:

答案 0 :(得分:1)

Nexus本身没有文件大小限制。但是,可能存在超时问题,应用程序的性能问题或底层操作系统和文件系统的其他问题。