lint-maven-plugin icon indicating copy to clipboard operation
lint-maven-plugin copied to clipboard

Feature request: Block springframework starter artifactIds

Open ruud-de-jong opened this issue 7 years ago • 2 comments

In our company, we like to control everything going to production. Therefore, dependency management is very important. Some lazy developers tend to use the Spring starter packages, like org.springframework.boot:spring-boot-starter-actuator These starter packages usually tend to pull in other unwanted packages. It would be nice to have a rule which can block Springframework starter packages in general.

When not parameterized, it could scan for "groupId".startsWith "org.springframework" and "artifactId".contains "-starter-"

ruud-de-jong avatar Mar 14 '19 10:03 ruud-de-jong

@ruud-de-jong, you might want to check out https://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html

zziga avatar Mar 15 '19 16:03 zziga

@ruud-de-jong, you might want to check out https://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html

@zziga Thanks. I missed option. It does exactly what it should.

ruud-de-jong avatar Mar 18 '19 08:03 ruud-de-jong