首页 > 其他 > 详细

assembly插件: dependencySets

时间:2020-07-16 15:33:26      阅读:151      评论:0      收藏:0      [点我收藏+]

 

hadoop打包方法:hdfs、yarn、MR所需要的jar放到不同目录下:

 

    <dependencySets>
        <dependencySet>
            <!--是否把本项目添加到依赖文件夹下:-->
            <useProjectArtifact>false</useProjectArtifact>
            <!-- 将项目所有依赖包拷贝到发布包的lib目录下 :-->
            <outputDirectory>lib</outputDirectory>
            <!-- 符合runtime作用范围的依赖会被打包进去: -->
            <scope>runtime</scope>
        </dependencySet>
        <dependencySet>
            <includes>
                <include>cn.ucloud.uds:uds-web</include>
            </includes>
            <!--是否把本项目添加到依赖文件夹下:-->
            <useProjectArtifact>false</useProjectArtifact>
            <!-- 将项目所有依赖包拷贝到发布包的lib目录下 :-->
            <outputDirectory>lib/web</outputDirectory>
            <!-- 符合runtime作用范围的依赖会被打包进去: -->
            <scope>runtime</scope>
        </dependencySet>
    </dependencySets>

 

assembly插件: dependencySets

原文:https://www.cnblogs.com/muzhongjiang/p/13322286.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!