Я использую сборку maven в своем проекте. У меня есть корпоративный репозиторий Nexus в нашей локальной сети. Этот репозиторий размещен по протоколу 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. Я загрузил сертификат и передал его maven, используя -Djavax.net.ssl.trustStore=Path/To/My/KeyStore
Инструмент командной строки работает нормально. Однако я до сих пор не могу построить проект, используя maven в eclipse.
Maven не загружает новые зависимости из локального репозитория.
Заранее спасибо за вашу помощь!
Прабодх