0
I added the STS plugin in the eclipse to create Spring-boot java projects, but when running the project it appears this 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 is like this
Class executing
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);
}
}
Error in pom.xml
insira o código aqui
Try downloading an JRE to run the project. You are trying to run the project with a JDK.
– FilipeTD