I can’t run script in the STS plugin in Eclipse

Asked

Viewed 410 times

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

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

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

inserir a descrição da imagem aqui

insira o código aqui
  • Try downloading an JRE to run the project. You are trying to run the project with a JDK.

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.