maven 排除依赖 通配符方法

排除所有<groupId>org.springframework</groupId>的jar包


举例:


<!-- UMP统一监控Java注解方式 -->
<dependency>
   <groupId>com.xx.ump</groupId>
   <artifactId>xannotation</artifactId>
   <version>1.0.0</version>
   <exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>*</artifactId>
</exclusion>
   </exclusions>
</dependency>

猜你喜欢

转载自angie.iteye.com/blog/2346257