I added the STS plugin in eclipse to be able to create java Spring-boot projects, but when executing the project it appears that error.
Erro: Não foi possível localizar nem carregar a classe principal br.com.impacta.springmvc.gerenciadordespesas.GerenciadorDespesasApplication
And also an error appears in pom.xml
Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.18.1 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-surefire-plugin:pom:2.18.1 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
My run configurations look like this
Classrunning
packagebr.com.impacta.springmvc.gerenciadordespesas;importorg.springframework.boot.SpringApplication;importorg.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublicclassGerenciadorDespesasApplication{publicstaticvoidmain(String[]args){SpringApplication.run(GerenciadorDespesasApplication.class,args);}}
Errorinpom.xml
insira o código aqui