Maven 突然在release:perform尝试上传文件时永远挂起:
14:49:24 [INFO] [artifact:mvn] [INFO] Scanning for projects...
14:49:24 [INFO] [artifact:mvn] [INFO] Searching repository for plugin with prefix: 'deploy'.
14:49:25 [INFO] [artifact:mvn] [INFO] ------------------------------------------------------------------------
14:49:25 [INFO] [artifact:mvn] [INFO] Building dcm4chee - Open Source - Packaging
14:49:25 [INFO] [artifact:mvn] [INFO] task-segment: [deploy:deploy-file] (aggregator-style)
14:49:25 [INFO] [artifact:mvn] [INFO] ------------------------------------------------------------------------
14:49:25 [INFO] [artifact:mvn] [INFO] [deploy:deploy-file {execution: default-cli}]
14:49:25 [INFO] [artifact:mvn] Uploading: http://mavenrepo:8081/nexus/content/repositories/idc-releases/com/mycompany/impaxdatacenter/dcm4chee-web/3.1.1.0.0-77/dcm4chee-web-3.1.1.0.0-77.war
14:49:25 [INFO] [artifact:mvn] 640K uploaded (dcm4chee-web-3.1.1.0.0-77.war)
14:49:25 [INFO] [artifact:mvn] [INFO] Uploading project information for dcm4chee-web 3.1.1.0.0-77
14:49:25 [INFO] [artifact:mvn] [INFO] Retrieving previous metadata from wtlslmvnp01.aqua.mitra.com
14:49:25 [INFO] [artifact:mvn] [INFO] Uploading repository metadata for: 'artifact com.mycompany.impaxdatacenter:dcm4chee-web'
14:49:26 [INFO] [artifact:mvn] [INFO] ------------------------------------------------------------------------
14:49:26 [INFO] [artifact:mvn] [INFO] BUILD SUCCESSFUL
14:49:26 [INFO] [artifact:mvn] [INFO] ------------------------------------------------------------------------
14:49:26 [INFO] [artifact:mvn] [INFO] Total time: 1 second
14:49:26 [INFO] [artifact:mvn] [INFO] Finished at: Thu Jul 14 14:49:26 EDT 2016
14:49:26 [INFO] [artifact:mvn] [INFO] Final Memory: 10M/111M
14:49:26 [INFO] [artifact:mvn] [INFO] ------------------------------------------------------------------------
14:49:27 [INFO] [artifact:mvn] [INFO] Scanning for projects...
14:49:27 [INFO] [artifact:mvn] [INFO] Searching repository for plugin with prefix: 'deploy'.
14:49:27 [INFO] [artifact:mvn] [INFO] ------------------------------------------------------------------------
14:49:27 [INFO] [artifact:mvn] [INFO] Building dcm4chee - Open Source - Packaging
14:49:27 [INFO] [artifact:mvn] [INFO] task-segment: [deploy:deploy-file] (aggregator-style)
14:49:27 [INFO] [artifact:mvn] [INFO] ------------------------------------------------------------------------
14:49:28 [INFO] [artifact:mvn] [INFO] [deploy:deploy-file {execution: default-cli}]
14:49:28 [INFO] [artifact:mvn] Uploading: http://mavenrepo:8081/nexus/content/repositories/idc-releases/com/mycompany/impaxdatacenter/dcm4chee-web/3.1.1.0.0-77/dcm4chee-web-3.1.1.0.0-77.jar
14:49:28 [INFO] [artifact:mvn] 281K uploaded (dcm4chee-web-3.1.1.0.0-77.jar)
14:49:28 [INFO] [artifact:mvn] [INFO] Uploading project information for dcm4chee-web 3.1.1.0.0-77 ***----> HANGS HERE FOREVER***
15:30:30 Build was aborted
然后我将 -X 添加到 maven 命令,然后我发现它挂在这个命令上:
/usr/local/jdk1.6.0_45/jre/bin/java -Dclassworlds.conf=/usr/local/apache-maven-2.2.1/bin/m2.conf -Dmaven.home=/usr/local/apache-maven-2.2.1 -classpath /usr/local/apache-maven-2.2.1/boot/classworlds-1.1.jar org.codehaus.classworlds.Launcher -Durl=http://mavenrepo:8081/nexus/content/repositories/idc-releases -DrepositoryId=mvnp01.repo.com deploy:deploy-file -DuniqueVersion=false -DgroupId=com.mycompany.impaxdatacenter -Dversion=3.1.1.0.0-77_testing_ken2 -DartifactId=$1 -DgeneratePOM=false -Dfile=..//$2 -Dpackaging=$3 -B -X
这也相当于这个 maven deploy:deploy-file 命令:
mvn -X deploy:deploy-file org.codehaus.classworlds.Launcher -Durl=http://mavenrepo:8081/nexus/content/repositories/idc-releases -DrepositoryId=mvnp01.repo.com deploy:deploy-file -DuniqueVersion=false -DgroupId=com.mycompany.impaxdatacenter -Dversion=3.1.1.0.0-77_testing_ken2 -DartifactId=$1 -DgeneratePOM=false -Dfile=$2 -Dpackaging=$3 -B
artifactId - $1
文件路径- $2
包类型- $3
我玩弄了这个命令,发现在上传带有SAME artifactId的SECOND包时,maven 永远挂起。
这是 maven-deploy-plugin:2.4 中的错误吗?