maven exclusions of dependency

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

maven exclusions of dependency

yli@sudytech.com

Can support regex expression for maven exclusions of dependency?

I wish ingore multi dependency that has same regex , instead of write multi exclusion.

Example:

I want to exclude all springframework dependency like as

<exclusion>

                      <groupId>org.springframework*</groupId>

                      <artifactId>*</artifactId>

            </exclusion>

then this equivalent to below way

<exclusion>

                                <groupId>org.springframework</groupId>

                                <artifactId>*</artifactId>

                   </exclusion>

                   <exclusion>

                                <groupId>org.springframework.boot</groupId>

                                <artifactId>*</artifactId>

                    </exclusion>

                   <exclusion>

                                <groupId>org.springframework.cloud</groupId>

                                <artifactId>*</artifactId>

                     </exclusion>

                       ……



********************************************

李翌 
15850741084                                 [hidden email] 
南京市雨花台区软件大道66号华通科技园3层                 210012
********************************************