I can not run program in STS plugin in Eclipse

0

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
    
asked by anonymous 26.02.2018 / 21:13

1 answer

0

To solve the pom.xml error, verify that you have installed the m2e plugin in eclipse; here I leave the link,

    

06.03.2018 / 22:26