尝试解决打包进去多余依赖的问题,失败了

This commit is contained in:
free will
2021-05-13 14:20:56 +08:00
parent 72cbf851fc
commit c5db18c015
2 changed files with 36 additions and 3 deletions
+33
View File
@@ -13,6 +13,39 @@
<useProjectArtifact>true</useProjectArtifact>
<unpack>true</unpack>
<scope>runtime</scope>
<excludes>
<!-- 排除这些在kafkatool2/lib存在的相关依赖-->
<exclude>com.google.code.gson:gson</exclude>
<exclude>org.apache.zookeeper:zookeeper</exclude>
<!-- 这些应该用不到-->
<exclude>org.apache.hadoop:hadoop-annotations</exclude>
<exclude>org.apache.hadoop:hadoop-auth</exclude>
<exclude>org.apache.hadoop:hadoop-common</exclude>
<exclude>org.apache.hadoop:hadoop-core</exclude>
<exclude>org.apache.hbase:hbase-annotations</exclude>
<exclude>org.apache.hbase:hbase-client</exclude>
<exclude>org.apache.hbase:hbase-protocol</exclude>
<exclude>org.apache.hbase:hbase-common</exclude>
<exclude>org.apache.kudu:kudu-client</exclude>
<exclude>io.netty:netty-all</exclude>
<exclude>javax.mail:mail</exclude>
<exclude>javax.servlet.jsp:jsp-api</exclude>
<exclude>javax.servlet:servlet-api</exclude>
<!-- <exclude>junit:junit</exclude>-->
<exclude>tomcat:jasper-compiler</exclude>
<exclude>tomcat:jasper-runtime</exclude>
<exclude>hsqldb:hsqldb</exclude>
<exclude>com.github.stephenc.findbugs:findbugs-annotations</exclude>
<exclude>com.google.code.findbugs:jsr</exclude>
<exclude>com.sun.jersey:jersey-core</exclude>
<exclude>com.sun.jersey:jersey-json</exclude>
<exclude>commons-httpclient:commons-httpclient</exclude>
<exclude>org.apache.curator:curator-client</exclude>
<exclude>org.apache.curator:curator-framework</exclude>
<exclude>org.apache.curator:curator-recipes</exclude>
<exclude>org.mortbay.jetty:jetty</exclude>
<exclude>org.mortbay.jetty:jetty-util</exclude>
</excludes>
</dependencySet>
<dependencySet>
<outputDirectory>/</outputDirectory>