2017-12-05 16 views
0

를 사용하여 중앙 저장소를 받는다는을 받는다는 유물을 배포 할 수 없습니다하지만 난 오류가 아래에 직면하고있다 : 나는 sonatype 계정에 대한 올바른 사용자 이름과 암호를 설정나는 트래비스을 통해 중앙 저장소에 받는다는 유물을 배포하려고 트래비스

[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project Test-plugin: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy failed: Nexus connection problem to URL [https://oss.sonatype.org/ ]: 401 - Unauthorized -> [Help 1] 

, 여전히 같은 오류가 발생합니다. 다음은 파일 업로드 : .travis.yml settings.xml

답변

0

내가 샘플을 동봉하고

을보고 받는다는 설정 적절한 권한 특성을 갖는되지 않는 홈 디렉토리의 .m2 폴더에 Settings.XML이 같은데 참조 용 XML ..

https://maven.apache.org/settings.html 다음

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 
         https://maven.apache.org/xsd/settings-1.0.0.xsd"> ... <servers> 
    <server> 
     <id>server001</id> 
     <username>my_login</username> 
     <password>my_password</password> 
     <privateKey>${user.home}/.ssh/id_dsa</privateKey> 
     <passphrase>some_passphrase</passphrase> 
     <filePermissions>664</filePermissions> 
     <directoryPermissions>775</directoryPermissions> 
     <configuration></configuration> 
    </server> </servers> ... </settings> 

은 문제 해결입니다 당신이

스냅 룩 - 업, 또는 버전 범위, 또는 버전없는 의존성 (일반적으로 플러그인) 메타 데이터 룩업을 트리거 할 문서에서 https://support.sonatype.com/hc/en-us/articles/213464518-Troubleshooting-Artifact-Download-Failures

(404)를 받고있는 경우 안내합니다. maven-metadata.xml에서 참조하는 버전이 없으면 404가 표시됩니다.

영향을받는 이슈에 대한 메타 데이터를 다시 작성하여 일반적으로 수정할 수 있습니다.

+0

답장을 보내 주셔서 감사합니다. – SMS

+0

하지만 github 저장소의 .travis 폴더에있는 settings.xml을 사용했습니다. – SMS

+0

내 .travis.yml 파일은 다음과 같습니다. – SMS