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

ERRO ao importar projeto

Alguma solução para esse erro? Ocorre ao importar o projeto.

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'DebugStore'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-jar-plugin:jar:2.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.apache.maven.plugins:maven-jar-plugin:jar:2.4 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-jar-plugin:jar:2.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.apache.maven.plugins:maven-jar-plugin:jar:2.4 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-jar-plugin:jar:2.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.apache.maven.plugins:maven-jar-plugin:jar:2.4 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-jar-plugin:jar:2.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.apache.maven.plugins:maven-jar-plugin:jar:2.4 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
2 respostas

Qual IDE está usando?

Tente rodar um "mvn clean install" na raiz do projeto e importar como maven project na sua IDE

solução!

Uso o eclipse.

Consegui resolver fazendo um Update Project pelo Maven.

Segui os seguinte passos:Botão direito no projeto > Maven > Update Project. Selecione a opção 'Force Update of Snapshots/Releases' e clique em OK.

Após isso o projeto foi construido normalmente.