`
aa8945163
  • 浏览: 277148 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

maven deploy上传私服出错

阅读更多
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:
deploy (default-deploy) on project ftadStatDao: Failed to deploy artifacts: Coul
d not transfer artifact com.ftad.common.stat.dao:ftadStatDao:jar:1.0-20110907.02
0427-1 from/to nexus-snapshot (http://xx.xxx:8081/nexus/content/repositori
es/snapshots): Failed to transfer file: http://xx.xxx:8081/nexus/content/r
epositories/snapshots/com/ftad/common/stat/dao/ftadStatDao/1.0-SNAPSHOT/ftadStat
Dao-1.0-20110907.020427-1.jar. Return code is: 401 -> [Help 1]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception


我的配置

<server> 
     <id>nexus-releases</id> 
     <username>deployment</username> 
     <password>deployment123</password> 
   </server> 
   <server> 
     <id>nexus-snapshots</id> 
     <username>deployment</username> 
     <password>deployment1234</password> 
   </server>

pom.xml

<distributionManagement>
    <!-- <repository>
      <id>thirdparty</id>
       <url>http://xx:8081/nexus/content/repositories/thirdparty</url>
    </repository>
     -->
        <repository> 
            <id>nexus</id> 
            <name>Team Nexus Release Repository</name> 
            <url>http://xx:8081/nexus/content/repositories/releases</url> 
        </repository> 
        <snapshotRepository> 
            <id>nexus-snapshot</id> 
            <name>Team Nexus Snapshot Repository</name> 
            <url>http://xx:8081/nexus/content/repositories/snapshots</url> 
            <uniqueVersion>false</uniqueVersion> 
        </snapshotRepository>
     
  </distributionManagement>






不容易在baidu和google的帮助下终于解决了
需要修改nexus 的releases 下的Deployment Policy为allow redeploy 和用户deployment 的密码
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics