当尝试上传文件时,Maven突然停在发布:执行:
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 ??