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

Popular posts from this blog

qt - Using float or double for own QML classes -

javascript - AngularJS - Uncaught Error: [$injector:modulerr] Failed to instantiate module -

ios - Swift Array Resetting Itself -