1
resposta

Problema no pom

estou com problema com o plugin org.apache.maven.plugins maven-compiler-plugin UTF-8 ${java.version} ${java.version}

esta dando o seguinte erro :

  • CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.codehaus.plexus:plexus-compiler-manager:jar:2.8.4, org.codehaus.plexus:plexus-compiler-javac:jar:2.8.4: Failure to transfer org.codehaus.plexus:plexus-compiler- manager:jar:2.8.4 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-compiler-manager:jar:2.8.4 from/to central (https://repo.maven.apache.org/ maven2): The operation was cancelled.
    • CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.codehaus.plexus:plexus-compiler-manager:jar:2.8.4, org.codehaus.plexus:plexus-compiler-javac:jar:2.8.4: Failure to transfer org.codehaus.plexus:plexus-compiler- manager:jar:2.8.4 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-compiler-manager:jar:2.8.4 from/to central (https://repo.maven.apache.org/ maven2): The operation was cancelled.
    • Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (execution: default-testCompile, phase: test-compile)
    • Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (execution: default-compile, phase: compile)
1 resposta

Oi Rafael,

Pode ter sido um erro do Maven ao baixar as dependencias do projeto na internet.

Apague a pasta do maven do seu computador(pasta oculta .m2, localizada no diretorio home do seu usuario) e importe novamente o projeto no Eclipse.