1
resposta

Erro na terceira linha do pom.xml ao inicializar o projeto

Multiple annotations found at this line:

- Failure to transfer org.springframework:spring-jcl:jar:5.1.9.RELEASE 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.springframework:spring-jcl:jar:5.1.9.RELEASE 
 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled. org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer 
 org.springframework:spring-jcl:jar:5.1.9.RELEASE 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.springframework:spring-jcl:jar:5.1.9.RELEASE from/to central (https://
 repo.maven.apache.org/maven2): The operation was cancelled. at
1 resposta

Oi Matheus,

Deve ter dado algum erro quando o maven estava baixando as dependências do projeto.

Apague o diretório do maven(pasta oculta .m2) e no eclipse clique o botão direito no projeto e escolha: Maven -> Update Project para o maven tentar baixar novamente.

Outra coisa que também pode gerar esse problema é se você estiver utilizando um proxy na sua rede e ele estiver barrando o maven de baixar as dependências. Verifique isso também.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software