2014-01-08 3 views
4

외부 Maven 저장소를 프록시 할 때 로컬 Sonaty Nexus를 사용하고 있습니다. 지금까지는 HTTP 리포지토리를 프록시 처리했지만 일부 인공물에 대해서는 Camunda을 도입해야했습니다. Nexus 원격 콘텐츠 브라우저를 사용하면 콘텐츠를 탐색 할 수 있지만 Nexus는 색인을 다운로드하지 않습니다. 그 이상, 넥서스 로그에 다음과 같은 오류가 나타납니다Sonatype Nexus - 요청한 대상에 대한 유효한 인증 경로를 찾을 수 없습니다.

2014-01-08 11:44:27 WARN [xy-3-thread-218] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Remote peer of proxy repository "Camunda Secure" [id=camunda.secure] threw a org.sonatype.nexus.proxy.RemoteStorageException exception. Connection/transport problems occured while connecting to remote peer of the repository. - Cause(s): Transport error while executing GET method [repositoryId="camunda.secure", requestPath="/", remoteUrl="https://app.camunda.com/nexus/content/groups/public/"] > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > unable to find valid certification path to requested target 
2014-01-08 11:44:44 ERROR [tp13549765-1372] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got RemoteStorageException in proxy repository "Camunda Secure" [id=camunda.secure] while retrievingremote artifact "ResourceStoreRequest(requestPath="/.meta/repository-metadata.xml")" from URL https://app.camunda.com/nexus/content/groups/public/, this is 1 (re)try, cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
2014-01-08 11:44:44 ERROR [tp13549765-1372] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got RemoteStorageException in proxy repository "Camunda Secure" [id=camunda.secure] while retrievingremote artifact "ResourceStoreRequest(requestPath="/.meta/repository-metadata.xml")" from URL https://app.camunda.com/nexus/content/groups/public/, this is 2 (re)try, cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
2014-01-08 11:44:44 ERROR [tp13549765-1372] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got RemoteStorageException in proxy repository "Camunda Secure" [id=camunda.secure] while retrievingremote artifact "ResourceStoreRequest(requestPath="/.meta/repository-metadata.xml")" from URL https://app.camunda.com/nexus/content/groups/public/, this is 3 (re)try, cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
2014-01-08 11:44:44 WARN [tp13549765-1372] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Remote peer of proxy repository "Camunda Secure" [id=camunda.secure] threw a org.sonatype.nexus.proxy.RemoteStorageException exception. Connection/transport problems occured while connecting to remote peer of the repository. - Cause(s): Transport error while executing GET method [repositoryId="camunda.secure", requestPath="/.meta/repository-metadata.xml", remoteUrl="https://app.camunda.com/nexus/content/groups/public/.meta/repository-metadata.xml"] > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > unable to find valid certification path to requested target 

나는 그것의 인덱스를 다운로드 및 내 Maven 프로젝트에서 그 아티팩트를 참조 할 수 있도록 어떻게해야합니까?

SK는

답변

8
여기

결론 : 당신이 인증서에 문제가 계속되면, camunda의 메이븐 저장소는 사용하여 SSL 암호화없이 액세스 할 수 있습니다 연결하려고하면 키 저장소에 foo.domain.com이라고 말합니다. 메이븐이 -이를 사용하는 키 스토어를 식별)

1 해결하는

단계는 매우 중요합니다. 키 저장소에 인증서를 추가하지만 계속 할 수 있기 때문에 안 하나 받는다는 여기

팁을 찾습니다 사항 : -

가) 구체적인 구성은 기본 JDK 키 스토어를 보일 것 포함되지 않은 경우 - caccerts을 JAVA_HOME

b)/Users/username/아래에 .mavnerc를 구성한 경우 기본 설정이 무시됩니다. 그래서 당신이 그것을

2 포인트 경우) 알고

keytool -import -alias alias_name -file certificate_name -keystore keystorelocation 
7

당신은 키 스토어에 대응하는 SSL 인증서를 가져와야 키 도구 명령을 사용하여 올바른 키 스토어로 인증서 가져 오기를 다운로드하려면 여기를 보이게.

다운로드 리눅스에 인증서 :

openssl s_client -showcerts -connect app.camunda.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM > mycertfile.pem 

가져 오기 자바 키 저장소에 인증서. https://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html 방법을 참조하십시오.

관련 문제