开发者

Maven-Ant dependency problem

开发者 https://www.devze.com 2023-03-24 22:17 出处:网络
I am trying to make a build file for a Java project in eclipse using Maven and Ant. However, I can\'t make the maven-ant-tasks dependency work. Can anybody help me on what to do with this? Maybe my UR

I am trying to make a build file for a Java project in eclipse using Maven and Ant. However, I can't make the maven-ant-tasks dependency work. Can anybody help me on what to do with this? Maybe my URL and file is wrong. Here it is:

  <property name="maven.ant.dir" value="http://apache.h开发者_C百科oxt.com/maven/binaries"/>

  <property name="maven.ant.file" value="http://apache.hoxt.com/maven/binaries/maven-ant-tasks-2.1.3.jar"/>


Here's how the Maven ANT task works

<project .. xmlns:artifact="antlib:org.apache.maven.artifact.ant">
  ..
  <target name="retrieve" description="Retrieve dependencies using Maven">

     <artifact:dependencies filesetId="compile.fileset" useScope="compile">
        <pom file="${pom.dir}/pom.xml"/>
     </artifact:dependencies>

     <copy todir="${retrieve.dir}/compile">
        <fileset refid="compile.fileset" />
        <mapper type="flatten" />
     </copy>
     ..

Documentation is here

0

精彩评论

暂无评论...
验证码 换一张
取 消