Pessoal, uso o STS Release 3.8.4 no Mint e ao tentar importar o projeto gera o erro no Setup Maven Plugin connectors: maven-compiler-plugin:3.1:compile (1erros). Poderiam me ajudar?
Pessoal, uso o STS Release 3.8.4 no Mint e ao tentar importar o projeto gera o erro no Setup Maven Plugin connectors: maven-compiler-plugin:3.1:compile (1erros). Poderiam me ajudar?
OI Leandro, qual o erro? Talvez a msg de erro indique algo.
Fala Alberto, segue alguns erros que encontrei.
CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 -> org.codehaus.plexus:plexus-compiler-javac:jar:2.2: ArtifactDescriptorException: Failed to read artifact descriptor for org.codehaus.plexus:plexus-compiler-javac:jar:2.2: ArtifactResolutionException: Failure to transfer org.codehaus.plexus:plexus-compiler-javac:pom:2.2 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-javac:pom:2.2 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.1:testCompile (execution: default-testCompile, phase: test-compile)
CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-plugin-api:jar:2.0.9, org.apache.maven:maven-artifact:jar:2.0.9, org.codehaus.plexus:plexus-utils:jar:1.5.1, org.apache.maven:maven-core:jar:2.0.9, org.apache.maven:maven-settings:jar:2.0.9, org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9, org.apache.maven:maven-profile:jar:2.0
Oi Leandro, não sei exatamente o motivo... No seu pom.xml já tem algo assim:
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
Isso fica, geralmente, lá em cima.. antes da declaração das dependências.
Acabei desencanando e quando desliguei o pc. No outro dia , magicamente o projeto estava funcionando. Vai entender.