Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

Falha ao dar o maven install

achei bem estranho isso, não acho uma resposta,

C:\Users\a862591\.jdks\openjdk-18.0.1\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\a862591\IdeaProjects\SpringApi -Dmaven.home=C:\Users\a862591\.m2\wrapper\dists\apache-maven-3.6.0-bin\2dakv70gp803gtm5ve1ufmvttn\apache-maven-3.6.0 -Dclassworlds.conf=C:\Users\a862591\.m2\wrapper\dists\apache-maven-3.6.0-bin\2dakv70gp803gtm5ve1ufmvttn\apache-maven-3.6.0\bin\m2.conf "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2022.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2022.1\lib\idea_rt.jar=61734:C:\Program Files\JetBrains\IntelliJ IDEA 2022.1\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\a862591\.m2\wrapper\dists\apache-maven-3.6.0-bin\2dakv70gp803gtm5ve1ufmvttn\apache-maven-3.6.0\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2022.1 install
[WARNING] 
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'blocked' (position: START_TAG seen ...</url>\r\n  \t\t<blocked>... @9:14)  @ C:\Users\a862591\.m2\settings.xml, line 9, column 14
[WARNING] 
[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------------< spring:SpringAlura >-------------------------
[INFO] Building SpringAlura 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ SpringAlura ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 2 resources
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.995 s
[INFO] Finished at: 2022-07-19T21:45:31-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project SpringAlura: Input length = 1 -> [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/MojoExecutionException

Process finished with exit code 1
4 respostas

Oi Rodrigo,

Parece um problema no arquivo de configurações do Maven settings.xml. Posta aqui como está o conteudo desse seu arquivo.

Obs: ele fica localizado aqui: C:\Users\a862591.m2\settings.xml

tirei um print pois na hora de mandar o texto saiu tudo errado, Insira aqui a descrição dessa imagem para ajudar na acessibilidade

solução!

Apaga essa tag <blocked>, pois o Maven não está a reconhecendo como uma tag válida.

Obs: Lembro que o Maven tinha passado a bloquear urls com HTTP ao invés de HTTPS, por questões de segurança. Recomendo então você alterar a url para: https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/

agora o erro mudou

C:\Users\a862591.jdks\openjdk-18.0.1\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\a862591\IdeaProjects\SpringApi -Dmaven.home=C:\Users\a862591.m2\wrapper\dists\apache-maven-3.6.0-bin\2dakv70gp803gtm5ve1ufmvttn\apache-maven-3.6.0 -Dclassworlds.conf=C:\Users\a862591.m2\wrapper\dists\apache-maven-3.6.0-bin\2dakv70gp803gtm5ve1ufmvttn\apache-maven-3.6.0\bin\m2.conf "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2022.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2022.1\lib\idea_rt.jar=63355:C:\Program Files\JetBrains\IntelliJ IDEA 2022.1\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\a862591.m2\wrapper\dists\apache-maven-3.6.0-bin\2dakv70gp803gtm5ve1ufmvttn\apache-maven-3.6.0\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2022.1 package [INFO] Scanning for projects... [INFO] [INFO] -------------------------< spring:SpringAlura >------------------------- [INFO] Building SpringAlura 0.0.1-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ SpringAlura --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] Copying 2 resources [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.114 s [INFO] Finished at: 2022-07-21T11:47:20-03:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project SpringAlura: Input length = 1 -> [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/MojoExecutionException

Process finished with exit code 1