【问题标题】:Nexus Artefact Upload FailureNexus Artefact 上传失败
【发布时间】:2018-01-17 13:44:02
【问题描述】:

使用 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

我尝试上传另一个文件大小为 300MB 的文件,它工作正常。

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

【问题讨论】:

    标签: maven nexus maven-deploy-plugin


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2014-11-18
      • 2018-04-11
      • 1970-01-01
      • 2014-05-21
      • 2015-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多