首页 > 编程知识 正文

maven排除jar包中的jar,maven如何打包

时间:2023-05-05 20:20:09 阅读:32588 作者:4490

Maven将package打包并提交两个jar包。 一个是只包含自己编写的代码,另一个是包含所有依赖导入的jar包,俗称胖jar包。

! - -在项目下- -构建插件! --scala编译插件--plugingroupidnet.ALC him 31.maven/groupidartifactidscala-maven-plugin/artifactidversion4. con versionexecutionsexecutionidscala-compile-first/idphaseprocess-resources/phasegoalsgoaladd-source/goalgoalcompillies ---fatjar插件----plugingroupidorg.Apache.maven.plugins/groupidartifactidmaven-shade-PLL 创建artifactidversion2.的versionexecutionsexecutionphasepackage/phasegoalsgoalshade/goal/goalsconfigurationfiltersfiltered artifactexcludesexcludemeta-INF/*.SF/excludeexcludemeta-INF/*.DSA/excludeeexcludemeta-INF/*.RSA/exclude -编译插件----plugingroupidorg.Apache.maven.plugins/groupidartifactidmaven-compiler-plugin/artifing targetencodingutf-8/encoding/configurationexecutionsexecutionphasecompile/phasegoalsgoalcompile/gompile

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。