Maven 引进来的jar包,但是想对jar包中的 一些目录、一些文件等进行部分的排除,可使用
使用一个或多个的
语法说明:
- ** 表示 多级目录匹配。
- * 表示 一级目录匹配。
2、排除依赖包的子依赖org.apache.maven.plugins maven-compiler-plugin **/demoserviceXxxxx.java **/test1.xml **/test2.xml
比如,在 hbase.jar 中又关联引入的许多的jar包,这就是子依赖。
排除子依赖 使用
(1)排除 一个或多个子依赖 。
org.apache.hbase hbase 0.94.17 commons-logging commons-logging xxxx xxxx
(2)排除所有的子依赖 。
org.apache.hbase hbase 0.94.17 * *



