maven-jar-plugin 定制包含哪些内容,不包含哪些
http://maven.apache.org/plugins/maven-jar-plugin/usage.html
控制打包内容
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.0.2</version> <configuration> <excludes> <exclude>**/iceconfig/*</exclude> </excludes> </configuration> </plugin> </plugins> </build>
比如这个就不会将iceconfig 下的包含到jar包里
如果是多级目录则格式 **/xxx/**
实际举例:
移除红框中
<excludes> <exclude>**/protocols/**</exclude> <exclude>**/templates/**</exclude> <exclude>**/README/**</exclude> </excludes>