Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run configuration for spring-boot application #336

Open
vhooz opened this issue Dec 4, 2024 · 0 comments
Open

Run configuration for spring-boot application #336

vhooz opened this issue Dec 4, 2024 · 0 comments

Comments

@vhooz
Copy link

vhooz commented Dec 4, 2024

I have the following error trying to run a spring-boot application:

[ERROR]: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java (default-cli)
It runs fine on my local terminal with $mvn spring-boot:run.

After some searching I identified the issue in my pom.xml:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-tomcat</artifactId>
    <scope>provided</scope>
</dependency>

The application fails to run because the parent pom has set the provided flag.
Only after removing the provided tag , the debuger works.

Is it posible to provide the missing dependencies from the launch configuration ? I do not want to have to change my pom every-time im going to run a service locally. I rather a launch configuration file aready set .

this is my launch configuration:

{
  "type": "jdk",
  "name": "Spring Boot App",
  "request": "launch",
  "cwd": "${workspaceFolder}",
  "vmArgs": "-Dspring.boot.starter.tomcat.include=true",
  "classPaths": [
    "C://ws//libs//*"
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant