maven - How to restrict a programmer to use a dependency in the pom.xml for spring boot? -
for example
undertow(spring boot - using undertow container)
jetty(spring boot - using jetty container)
<dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-web</artifactid> <exclusions> <exclusion> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-tomcat</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-jetty</artifactid> </dependency>
i wanted restrict programmer use undertow or jetty dependency in code.
Comments
Post a Comment