Adicionei o plugin do STS no eclipse para poder criar projetos java Spring-boot, mas ao executar o projeto ele aparece esse erro.
Erro: Não foi possível localizar nem carregar a classe principal br.com.impacta.springmvc.gerenciadordespesas.GerenciadorDespesasApplication
E também aparece um erro no 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.
Minha run configurations está assim
Classe que executa
package br.com.impacta.springmvc.gerenciadordespesas;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class GerenciadorDespesasApplication {
public static void main(String[] args) {
SpringApplication.run(GerenciadorDespesasApplication.class, args);
}
}
Erro no pom.xml
insira o código aqui