microsoft / microsoft/vscode-java-pack

Spring Boot maven plugin does not honor excludeGroupIds

Open
#1,065 3 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

ai-triaged enhancement
Dominant language
TypeScript
Stars
352
Forks
166
Avg merge
17h 47m
Merged PRs (30d)
32

Description

Suggestion

Currently, it seems that if in your project pom.xml you use spring-boot-plugin and provide <excludeGroupIds> and <excludes> sections, these are not honored when starting the spring boot application. Same is also true for <jvmArguments>. For jvmArguments, these can be passed inside the args section when launching, but not so for exclusions. Is it possible to support the settings provided to the spring-boot-maven-plugin when running the application.

Use Cases

We have a lot of exclusions in the spring-boot-maven-plugin since our code is legacy and lots of old libraries. We use this as a way to make sure those transitive dependencies do not work at runtime using excludeGroupIds and excludes section.
https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#packaging.examples.exclude-dependency

Examples

https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#packaging.examples.exclude-dependency

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.