maven模块依赖插件(转载)

<div id="article_content" class="article_content csdn-tracking-statistics" data-mod="popu_519" data-dsm="post" style="overflow: hidden;">
                        
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
转:http://liugang594.iteye.com/blog/2093082</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
<a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/" style="color:rgb(16,138,198)">maven-dependency-plugin</a>是处理与依赖相关的插件。它有很多可用的goal,大部分是和依赖构建、分析和解决相关的goal,这部分goal可以直接用maven的命令操作,例如:mvn dependency:tree、mvn dependency:analyze;这类操作在平时的maven应用中很少会用到。这里主要介绍除此之外的、用得最多的几个操作:copy,
 copy-dependencies和它们对应的unpack, unpack-dependencies</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
首先声明插件:</p>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">build</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugins</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugin</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.apache.maven.plugins<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>maven-dependency-plugin<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>2.8<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugin</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugins</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">build</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<h2 style="font-size:14px; line-height:1.5em; margin:0px 0px 0.5em; padding:0px; font-family:Helvetica,Tahoma,Arial,sans-serif"><a name="t0"></a>
copy 和 unpack</h2>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
copy操作可以用来将某个(些)maven artifact(s)拷贝到某个目录下。添加phase和goal如下:</p>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">build</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugins</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugin</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.apache.maven.plugins<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>maven-dependency-plugin<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>2.8<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">executions</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">execution</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">phase</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>package<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">phase</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goals</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goal</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>copy<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goal</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goals</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">execution</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">executions</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugin</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugins</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">build</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
然后就是配置,copy可以的配置的项比较多,详细的请参考:<a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html" style="color:rgb(16,138,198)">copy配置</a>。下面是一些常用项说明:</p>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">Name Type Since Description</span>
<table class="bodyTable " border="0" style="color:rgb(0,0,0); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
<tbody>
<tr class="a" style="background-color:rgb(221,221,221)">
</tr>
<tr class="a" style="background-color:rgb(221,221,221)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html#artifactItems" style="color:rgb(102,136,170)">artifactItems</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>List</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>1.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Collection of ArtifactItems to work on. (ArtifactItem contains groupId, artifactId, version, type, classifier, outputDirectory, destFileName and overWrite.) See&nbsp;<a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/usage.html" style="color:rgb(102,136,170)">Usage</a>&nbsp;for
 details.</td>
</tr>
<tr class="a" style="background-color:rgb(221,221,221)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html#outputDirectory" style="color:rgb(102,136,170)">outputDirectory</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>File</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>1.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Default output location used for mojo, unless overridden in ArtifactItem.<br>
<strong>Default value is</strong>:&nbsp;<tt>${project.build.directory}/dependency</tt>.<br>
<strong>User property is</strong>:&nbsp;<tt>outputDirectory</tt>.</td>
</tr>
<tr class="a" style="background-color:rgb(221,221,221)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html#prependGroupId" style="color:rgb(102,136,170)">prependGroupId</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>boolean</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.7</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Prepend artifact groupId during copy<br>
<strong>Default value is</strong>:&nbsp;<tt>false</tt>.<br>
<strong>User property is</strong>:&nbsp;<tt>mdep.prependGroupId</tt>.</td>
</tr>
</tbody>
</table>
<ul style="margin:0px 0px 1.5em; padding:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
<li style="margin:0px 0px 0.25em 30px; padding:0px">prependGroupId: 用来指示拷出来的library名字需要不需要加上groupId,默认是不加</li><li style="margin:0px 0px 0.25em 30px; padding:0px">outputDirectory: 用来指定拷出后Libraries的存放地</li></ul>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
这里除了artifactItems没有默认值,需要指定外,所有其他的选项都可以被忽略:</p>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>4.11<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">以上配置会将junit包拷到target/dependency目录下,文件名为:junit-4.11.jar。</span>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
如果想把它拷到lib目录下,可以如下配置:</p>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>4.11<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>lib<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">或者:</span>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>4.11<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>lib<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">根据上面的说明,artifactItem里可以有以下几个参数:</span><br style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<ul style="margin:0px 0px 1.5em; padding:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
<li style="margin:0px 0px 0.25em 30px; padding:0px">groupId&nbsp;</li><li style="margin:0px 0px 0.25em 30px; padding:0px">artifactId</li><li style="margin:0px 0px 0.25em 30px; padding:0px">version</li><li style="margin:0px 0px 0.25em 30px; padding:0px">type</li><li style="margin:0px 0px 0.25em 30px; padding:0px">classifier</li><li style="margin:0px 0px 0.25em 30px; padding:0px">outputDirectory</li><li style="margin:0px 0px 0.25em 30px; padding:0px">destFileName</li><li style="margin:0px 0px 0.25em 30px; padding:0px">overWrite</li></ul>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
同样的参数,artifactItem里的优先级更高,例如:</p>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>4.11<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.slf4j<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>slf4j-log4j12<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>1.7.7<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>lib2<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>lib<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">其中junit会拷到lib目录下,因为它没有定义自己的outputDirectory;slf4j-log4j12会拷到lib2下,因为它定义了自己的outputDirectory。&nbsp;</span>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
unpack和copy类似,只不过它会把拷来的包解开,例如:</p>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">executions</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">execution</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">phase</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>package<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">phase</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goals</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goal</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>unpack<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goal</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goals</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">execution</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">executions</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>4.11<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.slf4j<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>slf4j-log4j12<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>1.7.7<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>lib2<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItem</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactItems</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>lib<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">outputDirectory</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">则junit和slf4j-log4j12拷完以后,放到lib和lib2下的不再是Jar包,还是Jar包里的内容。&nbsp;</span>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<h2 style="font-size:14px; line-height:1.5em; margin:0px 0px 0.5em; padding:0px; font-family:Helvetica,Tahoma,Arial,sans-serif"><a name="t1"></a>
copy-dependencies 和 unpack-dependencies</h2>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
上面介绍的copy 和 unpack操作是由要拷某个包,这个包需要具体指定要拷哪个包,与当前工程的依赖没有关系。copy-dependencies和它有点类似,但是它是用来拷当前工程的依赖包的,典型的,例如我们有一个web应用,当打成war包的时候,它所有的依赖也需要被打到应用中。&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
copy-dependencies的参数有很多,详细的可以参考:<a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html" style="color:rgb(16,138,198)">copy-dependencies Doc</a>,但是几乎所有都有默认值。所以一个最简单的定义如下:</p>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugin</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.apache.maven.plugins<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>maven-dependency-plugin<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>2.8<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">executions</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">execution</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">phase</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>package<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">phase</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goals</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goal</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>copy-dependencies<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goal</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goals</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">execution</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">executions</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugin</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">这里没有指定任何配置,所有的参数都用默认值,则当前工程的所有依赖(直接、间接的)都会被拷到target/dependency目录下。</span>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
也可以使用outputDirectory指定存放在。另外,以下几个参数可以控制哪些依赖将被拷出(或排除):</p>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">Name Type Since Description</span>
<table class="bodyTable " border="0" style="color:rgb(0,0,0); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
<tbody>
<tr class="a" style="background-color:rgb(221,221,221)">
</tr>
<tr class="a" style="background-color:rgb(221,221,221)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#excludeArtifactIds" style="color:rgb(102,136,170)">excludeArtifactIds</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Comma separated list of Artifact names to exclude.<br>
<strong>User property is</strong>:&nbsp;<tt>excludeArtifactIds</tt>.</td>
</tr>
<tr class="b" style="background-color:rgb(238,238,238)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#excludeClassifiers" style="color:rgb(102,136,170)">excludeClassifiers</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Comma Separated list of Classifiers to exclude. Empty String indicates don't exclude anything (default).<br>
<strong>User property is</strong>:&nbsp;<tt>excludeClassifiers</tt>.</td>
</tr>
<tr class="a" style="background-color:rgb(221,221,221)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#excludeGroupIds" style="color:rgb(102,136,170)">excludeGroupIds</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Comma separated list of GroupId Names to exclude.<br>
<strong>User property is</strong>:&nbsp;<tt>excludeGroupIds</tt>.</td>
</tr>
<tr class="b" style="background-color:rgb(238,238,238)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#excludeScope" style="color:rgb(102,136,170)">excludeScope</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Scope to exclude. An Empty string indicates no scopes (default).<br>
<strong>User property is</strong>:&nbsp;<tt>excludeScope</tt>.</td>
</tr>
<tr class="a" style="background-color:rgb(221,221,221)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#excludeTransitive" style="color:rgb(102,136,170)">excludeTransitive</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>boolean</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
If we should exclude transitive dependencies<br>
<strong>Default value is</strong>:&nbsp;<tt>false</tt>.<br>
<strong>User property is</strong>:&nbsp;<tt>excludeTransitive</tt>.</td>
</tr>
<tr class="b" style="background-color:rgb(238,238,238)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#excludeTypes" style="color:rgb(102,136,170)">excludeTypes</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Comma Separated list of Types to exclude. Empty String indicates don't exclude anything (default).<br>
<strong>User property is</strong>:&nbsp;<tt>excludeTypes</tt>.</td>
</tr>
<tr class="a" style="background-color:rgb(221,221,221)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#includeArtifactIds" style="color:rgb(102,136,170)">includeArtifactIds</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Comma separated list of Artifact names to include.<br>
<strong>User property is</strong>:&nbsp;<tt>includeArtifactIds</tt>.</td>
</tr>
<tr class="b" style="background-color:rgb(238,238,238)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#includeClassifiers" style="color:rgb(102,136,170)">includeClassifiers</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Comma Separated list of Classifiers to include. Empty String indicates include everything (default).<br>
<strong>User property is</strong>:&nbsp;<tt>includeClassifiers</tt>.</td>
</tr>
<tr class="a" style="background-color:rgb(221,221,221)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#includeGroupIds" style="color:rgb(102,136,170)">includeGroupIds</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Comma separated list of GroupIds to include.<br>
<strong>User property is</strong>:&nbsp;<tt>includeGroupIds</tt>.</td>
</tr>
<tr class="b" style="background-color:rgb(238,238,238)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#includeScope" style="color:rgb(102,136,170)">includeScope</a></strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Scope to include. An Empty string indicates all scopes (default). The scopes being interpreted are the scopes as Maven sees them, not as specified in the pom. In summary:
<ul style="margin:0px 0px 1.5em; padding:0px">
<li style="margin:0px 0px 0.25em 30px; padding:0px"><tt>runtime</tt>&nbsp;scope gives runtime and compile dependencies,</li><li style="margin:0px 0px 0.25em 30px; padding:0px"><tt>compile</tt>&nbsp;scope gives compile, provided, and system dependencies,</li><li style="margin:0px 0px 0.25em 30px; padding:0px"><tt>test</tt>&nbsp;(default) scope gives all dependencies,</li><li style="margin:0px 0px 0.25em 30px; padding:0px"><tt>provided</tt>&nbsp;scope just gives provided dependencies,</li><li style="margin:0px 0px 0.25em 30px; padding:0px"><tt>system</tt>&nbsp;scope just gives system dependencies.</li></ul>
<br>
<strong>User property is</strong>:&nbsp;<tt>includeScope</tt>.</td>
</tr>
<tr class="a" style="background-color:rgb(221,221,221)">
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<strong><a target="_blank" href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#includeTypes" style="color:rgb(102,136,170)">includeTypes</a>&nbsp; &nbsp; &nbsp;&nbsp;</strong></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>String</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
<tt>2.0</tt></td>
<td style="font-size:11px; color:rgb(51,51,51); padding:2px 4px; vertical-align:top">
Comma Separated list of Types to include. Empty String indicates include everything (default).<br>
<strong>User property is</strong>:&nbsp;<tt>includeTypes</tt>.</td>
</tr>
</tbody>
</table>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
例如当前工程有以下依赖:</p>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependencies</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>junit<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>4.11<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">scope</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>test<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">scope</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.slf4j<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>slf4j-log4j12<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>1.7.7<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">scope</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>test<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">scope</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.apache.camel<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>camel-script<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>2.13.2<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.apache.camel<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>camel-spring<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>2.13.2<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.apache.camel<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>camel-xstream<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>2.13.2<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.springframework<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>spring-jms<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>3.2.4.RELEASE<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.springframework<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>spring-tx<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>3.2.4.RELEASE<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.apache.activemq<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>activemq-all<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>5.10.0<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>com.thoughtworks.xstream<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>xstream<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>1.4.7<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.ogce<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>xpp3<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>1.1.6<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependency</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">dependencies</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">要排除所有scope为test的依赖:</span>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugin</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.apache.maven.plugins<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">groupId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>maven-dependency-plugin<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">artifactId</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>2.8<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">version</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">executions</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">execution</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">phase</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>package<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">phase</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goals</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goal</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>copy-dependencies<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goal</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">goals</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">execution</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">executions</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">includeScope</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>compile<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">includeScope</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">plugin</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">注意:这里不能&lt;excludeScope&gt;test&lt;/excludeScope&gt;,这样会把所有compile级别的也排除。看下图:&nbsp;&nbsp;</span>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">Copied From:&nbsp;</span><a target="_blank" href="http://docs.codehaus.org/display/MAVENUSER/Dependency+Scopes" style="color:rgb(16,138,198); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">Dependencies
 Scopes</a>
<table class="bbcode " style="border:1px solid rgb(204,204,204); color:rgb(0,0,0); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px; table-layout:fixed; min-width:400px; max-width:650px">
<tbody>
<tr>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px"><strong>scope/phase-&gt;</strong></td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px"><strong>compile</strong></td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px"><strong>test</strong></td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px"><strong>run</strong></td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px"><strong>assembly</strong></td>
</tr>
<tr>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px"><strong>compile</strong></td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">U</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">U</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">U</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">U</td>
</tr>
<tr>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px"><strong>provided</strong></td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">U</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">!</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">!</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">!</td>
</tr>
<tr>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px"><strong>runtime</strong></td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">!</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">U</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">U</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">U</td>
</tr>
<tr>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px"><strong>test</strong></td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">!</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">U</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">!</td>
<td style="font-size:1em; border:1px solid rgb(204,204,204); padding:3px">!</td>
</tr>
</tbody>
</table>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
说明:最左侧是表示dependency的scope级别,顶行表示maven的阶段,可以看出:compile级别的dependency会在所有阶段都被使用。</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
&nbsp;</p>
<p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">
要排除所有camel的依赖,如下:</p>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">excludeGroupIds</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>org.apache.camel<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">excludeGroupIds</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
<span style="font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14px; line-height:25.2px">要排除除camel-spring外的所有其他依赖如下:</span>
<div class="dp-highlighter" id="" style="font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono',Consolas,'Courier New',monospace; width:679px; overflow:auto; margin-left:9px; padding:1px; word-break:break-all; word-wrap:break-word; line-height:25.2px">
<div class="bar">
<div class="tools" style="padding:3px; margin:0px; font-weight:bold">Xml代码&nbsp;&nbsp;<a target="_blank" title="收藏这段代码" style="color:rgb(16,138,198); text-decoration:underline"><img class="star" src="http://liugang594.iteye.com/images/icon_star.png" alt="收藏代码" style="border:0px"></a></div>
</div>
<ol start="1" class="dp-xml" style="font-size:1em; line-height:1.4em; margin:0px 0px 1px; padding:2px 0px; border:1px solid rgb(209,215,220); color:rgb(43,145,175)">
<li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">includeArtifactIds</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>camel-spring<span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">includeArtifactIds</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li><li style="font-size:1em; margin:0px 0px 0px 38px; padding:0px 0px 0px 10px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(209,215,220); line-height:18px; background-color:rgb(250,250,250)">
<span style="color:black"><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&lt;/</span><span class="tag-name" style="color:rgb(0,102,153); font-weight:bold">configuration</span><span class="tag" style="color:rgb(0,102,153); font-weight:bold">&gt;</span>&nbsp;&nbsp;</span></li></ol>
</div>
                    </div>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值