2014-01-22 8 views
0
내 응용 프로그램을 배포하려고 할 때이 오류가있어

: 당신은/conf의/Settings.XML의 섹션 서버 MAVEN_HOME에 자격 증명을 확인해야아티팩트를 배포 할 수 없습니다

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project acme-db: Failed to deploy artifacts: Could not transfer artifact com.acme:acme-db:jar:0.8.1 from/to artifactory.acme.com (http://artifactory.acme.com/libs-release-local): Access denied to: http://artifactory.acme.com/libs-release-local/com/acme/acme-db/0.8.1/acme-db-0.8.1.jar, ReasonPhrase:Forbidden. -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[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 read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
Build step 'Invoke top-level Maven targets' marked build as failure 
Finished: FAILURE 

답변

2

<server> 
    <id>nexus</id> 
    <username>deploy</username> 
    <password>123456</password> 
</server> 

ID는 pom.xml의 배포 관리에서 id와 일치해야합니다.

<distributionManagement> 
    <repository> 
     <id>nexus</id> 
     <url>...</url> 
    </repository> 
</distributionManagement> 
관련 문제