'u01/jenkins/.m2 /'에 내 settings.xml 파일이 있습니다. 이 곳에서 넥서스 배포를 구성해야합니까? (모든 사용자에 대해 전 세계적으로 사용 가능) 메이븐에 설치되어있는 폴더 또는 $HOME/.m2/settings.xml
에서 젠킨스 작업을 실행하는 사용자의 홈 폴더 중 하나를 이동해야"Return code is : 401, ReasonPhrase : Unauthorized."오류가 발생합니다. 젠킨스를 통해 넥서스에 아티팩트를 배포하려고 할 때
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project jenktest: Failed to deploy artifacts: Could not transfer artifact tulsa.jenkins.test:jenktest:pom:0.0.1-20170905.090435-1 from/to snapshots (http://myhost:8081/nexus/content/repositories/snapshots): Failed to transfer file: http://myhost:8081/nexus/content/repositories/snapshots/tulsa/jenkins/test/jenktest/0.0.1-SNAPSHOT/jenktest-0.0.1-20170905.090435-1.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project jenktest: Failed to deploy artifacts: Could not transfer artifact tulsa.jenkins.test:jenktest:pom:0.0.1-20170905.090435-1 from/to snapshots (http://204.26.165.206:8081/nexus/content/repositories/snapshots): Failed to transfer file: http://myhost:8081/nexus/content/repositories/snapshots/tulsa/jenkins/test/jenktest/0.0.1-SNAPSHOT/jenktest-0.0.1-20170905.090435-1.pom. Return code is: 401, ReasonPhrase: Unauthorized.
나는 젠킨스 작업 폴더에 Settings.XML의 파일을 참조하고 난 무단 액세스 에러에 직면 메신저 thogh, 배포 권한을 가진 REPOS 및 사용자와 Settings.XML의 파일을 구성 했습니까? 가능한 이유는 무엇입니까? Thanks –
settings.xml은 jenkins 작업 폴더에 있으면 안됩니다. 그것은'/ home/[JENKINS_USERNAME] /. m2/settings.xml'에 있어야합니다. –