プロジェクトでmavenビルドを使用しています。ローカル ネットワークに企業のネクサス リポジトリがあります。このリポジトリは https でホストされています。
Eclipse からこのリポジトリにアクセスする際に問題が発生しています。
表示されるエラーは次のとおりです。
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (execution: default-compile, phase: compile)
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor
for org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from https://
NexusServer/nexus/content/groups/CLM/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. Original
error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from/to nexus (https://NexusServer/nexus/content/groups/CLM/):
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (execution: default-testCompile, phase: test-compile)
私は少しグーグルで、mavenビルドの実行中に証明書を渡す解決策を見つけました。証明書をダウンロードし、 -Djavax.net.ssl.trustStore=Path/To/My/KeyStore を使用して maven に渡しました
コマンド ライン ツールは正常に動作します。ただし、Eclipse で Maven を使用してプロジェクトをビルドすることはまだできません。
Maven は、ローカル リポジトリから新しい依存関係をダウンロードしません。
助けてくれてありがとう!
プラボード