Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5

3 respostas
F

Olá Senhores,

Não configo rodar o maven, nem mesmo mvn clean, pois sempre tenho uma saída semelhante ao que segue abaixo.

Estou tentando configurar o ambiente para utilizar o VRaptor4. Meu projeto está travado.

Alguém pode sinalizar o caminho para solução deste? ficaria muito grato!

[INFO] ------------------------------------------------------------------------
[INFO] Building livraria 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.795 s
[INFO] Finished at: 2018-03-19T16:58:45-03:00
[INFO] Final Memory: 8M/240M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

3 Respostas

D

Cara, começa excluindo o conteúdo da pasta repository, que fica dentro de .m2.
Se não der certo, tenta reinstalar o maven.

F

Oi Darlan, obrigado pelo retorno.

Ja efetuei os dois procedimentos, mas sem sucesso, mesmo fazendo um apt purge.Vou tentar instalar o VRaptor limpo com Dynamic Web Project no Eclipse sem o Maven, se tiver sucesso aviso aqui.

Mais uma vez obrigado! Abç.

F

Saudações comunidade!

Alguém já passou por esta situação abaixo. Encontrei dois caminhos nas pesquisas. Configuração de proxy no settings.xml, mas minha internet não tem proxy, outro caminho tem a ver com SSL cacerts. Preciso de orientação quanto ao erro abaixo.

Agradeço toda ajuda!

[INFO] Scanning for projects…
[INFO]
[INFO] --------------------< your.groupid:your-artifactid >--------------------
[INFO] Building your-artifactid 1.0.0
[INFO] --------------------------------[ war ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.852 s
[INFO] Finished at: 2018-05-09T11:25:28-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
new@matrix:~/eclipse/workspace/vraptor-blank-project$

Criado 19 de março de 2018
Ultima resposta 9 de mai. de 2018
Respostas 3
Participantes 2