-
-
-
-
-
-
-
- </div>
+ </div>
</div>
<div id="bodyColumn">
<div id="contentBox">
- <div class="section"><h2>Referencing the Maven Classpaths</h2>
-<p>A property is set for each dependency with the format &quot;groupId:artifactId[:classifier]:type&quot;. For example, to show the path to a dependency with groupId &quot;org.apache&quot; and artifactId &quot;common-util&quot;, the following could be used.</p>
-<div class="source"><pre>&lt;echo message=&quot;Dependency JAR Path: ${org.apache:common-util:jar}&quot;/&gt; </pre>
-</div>
-<p>Note that the old format &quot;maven.dependency.groupId.artifactId[.classifier].type.path&quot; has been deprecated and should no longer be used.</p>
-<p>You can also use these classpath references:</p>
-<ul><li><tt>maven.compile.classpath</tt></li>
-<li><tt>maven.runtime.classpath</tt></li>
-<li><tt>maven.test.classpath</tt></li>
-<li><tt>maven.plugin.classpath</tt></li>
-</ul>
-<p>For example, to display Maven's classpaths using antrun, we can do this</p>
-<div class="source"><pre>&lt;project&gt;
+ <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/referen ces/apt-format.html --><div class="section"><h2>Referencing the Maven Classpaths<a name="Referencing_the_Maven_Classpaths"></a></h2><p>A property is set in the Ant build for each project dependency. Each property name uses the format <b>groupId:artifactId:type[:classifier]</b>. For example, to show the path to a jar dependency with groupId &quot;org.apache&quot; and artifactId &quot;common-util&quot;, the following could be used.</p><div><pre>&lt;echo message=&quot;${org.apache:common-util:jar}&quot;/&gt; </pre></div><p>If the dependency includes a classifier, the classifier is appended to the property name. For example, groupId &quot;org.apache&quot;, artifactId &quot;common-util&quot;, type &quot;jar&quot;, and classifier &quot;jdk14&quot;.</p><div><pre>&lt;echo message=&quot;${org.apache:common-util:jar:jdk14}&quot;/&gt; </pre></div><p><b>Note:</b> the old format &quot;maven.dependency.groupId.artifactId[.classifier].type.path&quot; has been deprecated and should no longe
r be used.</p><p>You can also use these classpath references:</p><ul><li><tt>maven.compile.classpath</tt></li><li><tt>maven.runtime.classpath</tt></li><li><tt>maven.test.classpath</tt></li><li><tt>maven.plugin.classpath</tt></li></ul><p>For example, to display Maven's classpaths using antrun, we can do this</p><div><pre>&lt;project&gt;
&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
&lt;artifactId&gt;my-test-app&lt;/artifactId&gt;
&lt;groupId&gt;my-test-group&lt;/groupId&gt;
@@ -215,7 +165,7 @@
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
- &lt;version&gt;1.6&lt;/version&gt;
+ &lt;version&gt;1.7&lt;/version&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;compile&lt;/id&gt;
@@ -242,10 +192,7 @@
&lt;/plugins&gt;
&lt;/build&gt;
&lt;/project&gt;
-</pre>
-</div>
-<p>or alternatively, we can use an external <tt>build.xml</tt>.</p>
-<div class="source"><pre>&lt;project&gt;
+</pre></div><p>or alternatively, we can use an external <tt>build.xml</tt>.</p><div><pre>&lt;project&gt;
&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
&lt;artifactId&gt;my-test-app&lt;/artifactId&gt;
&lt;groupId&gt;my-test-group&lt;/groupId&gt;
@@ -257,7 +204,7 @@
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
- &lt;version&gt;1.6&lt;/version&gt;
+ &lt;version&gt;1.7&lt;/version&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;compile&lt;/id&gt;
@@ -282,10 +229,7 @@
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/build&gt;
-&lt;/project&gt;</pre>
-</div>
-<p>The <tt>build.xml</tt>:</p>
-<div class="source"><pre>&lt;?xml version=&quot;1.0&quot;?&gt;
+&lt;/project&gt;</pre></div><p>The <tt>build.xml</tt>:</p><div><pre>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;project name=&quot;test6&quot;&gt;

-
-
-
-
-
-
-
- </div>
+ </div>
</div>
<div id="bodyColumn">
<div id="contentBox">
- <div class="section"><h2>Using tasks not included in Ant's default jar</h2>
-<p>To use Ant tasks not included in the Ant jar, like Ant optional or custom tasks you need to add the dependencies needed for the task to run to the plugin classpath and use the <tt>maven.plugin.classpath</tt> reference if needed.</p>
-<div class="source"><pre>&lt;project&gt;
+ <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/referen ces/apt-format.html --><div class="section"><h2>Using tasks not included in Ant's default jar<a name="Using_tasks_not_included_in_Ants_default_jar"></a></h2><p>To use Ant tasks not included in the Ant jar, like Ant optional or custom tasks you need to add the dependencies needed for the task to run to the plugin classpath and use the <tt>maven.plugin.classpath</tt> reference if needed.</p><div><pre>&lt;project&gt;
&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
&lt;artifactId&gt;my-test-app&lt;/artifactId&gt;
&lt;groupId&gt;my-test-group&lt;/groupId&gt;
@@ -201,77 +161,63 @@

-
-
-
-
-
-
-
- </div>
+ </div>
</div>
<div id="bodyColumn">
<div id="contentBox">
- <div class="section"><h2><a name="top">Frequently Asked Questions</a></h2>
-<ol type="1"><li><a href="#Why_use_antrun_and_not_the_Ant_program_itself">Why use antrun and not the Ant program itself?</a></li>
-<li><a href="#Why_is_antrun_not_correctly_handling_my_plugin_dependency_in_a_multi-module_build">Why is antrun not correctly handling my plugin dependency in a multi-module build?</a></li>
-</ol>
-</div>
-<dl><dt><a name="Why_use_antrun_and_not_the_Ant_program_itself">Why use antrun and not the Ant program itself?</a></dt>
-<dd>
+ <!-- Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License. --><div class="section"><h2><a name="top">Frequently Asked Questions</a><a name="Frequently_Asked_Questions"></a></h2><ol style="list-style-type: decimal"><li><a href="#Why_use_antrun_and_not_the_Ant_program_itself">Why use antrun and not the Ant program itself?</a></li><li><a href="#Why_is_antrun_not_correctly_handling_my_plugin_dependency_in_a_multi-module_build">Why is antrun not correctly handling my plugin dependency in a multi-module build?</a></li></ol></div><dl><dt><a name="Why_use_antrun_and_not_the_Ant_program_itself">Why use antrun and not the Ant program itself?</a></dt><dd>
<p>Maven has certain benefits over Ant. And for your Ant projects to take
advantage of these, you can use Maven as your project management tool and
use its maven-antrun-plugin to build your Ant projects.</p>
<p>Furthermore, if you wish to migrate from Ant to Maven, you can use
this plugin first, then gradually convert your Ant expressions into their
corresponding Maven expressions.</p>
- <table border="0"><tr><td align="right"><a href="#top">[top]</a></td></tr></table><hr />
-</dd>
-<dt><a name="Why_is_antrun_not_correctly_handling_my_plugin_dependency_in_a_multi-module_build">Why is antrun not correctly handling my plugin dependency in a multi-module build?</a></dt>
-<dd>
+ <p align="right"><a href="#top">[top]</a></p><hr /></dd><dt><a name="Why_is_antrun_not_correctly_handling_my_plugin_dependency_in_a_multi-module_build">Why is antrun not correctly handling my plugin dependency in a multi-module build?</a></dt><dd>
<p>There is a problem in some versions of Maven (earlier than 3.0-alpha-1) that prevent Maven from correctly resolving
plugin dependencies in a multi-module build (MNG-1323). This means that if you have multiple
modules in your project and the antrun plugin declares a different set of dependencies, only the first
declaration found will be used.</p>
<p>The workaround for this is to specify the same set of plugin dependencies for all declarations of the
antrun plugin. Another option is to move the plugin dependencies to the project level and set the
- scope to "provided". For more information, see MANTRUN-51 and MANTRUN-106.</p>
- <table border="0"><tr><td align="right"><a href="#top">[top]</a></td></tr></table></dd>
-</dl>
-
+ scope to &quot;provided&quot;. For more information, see MANTRUN-51 and MANTRUN-106.</p>
+ <p align="right"><a href="#top">[top]</a></p></dd></dl>
</div>
</div>
<div class="clear">
<hr/>
</div>
<div id="footer">
- <div class="xright">&#169;
- 2002-2010
-
- The Apache Software Foundation
-
-
-
-
-
+ <div class="xright">
+ &#169; 2002-2011
+ The Apache Software Foundation