Is there a way I can use Maven repositories to add dependencies to Ant?

后端 未结 4 433
滥情空心
滥情空心 2020-12-19 03:38

I was wondering if anybody has seen a technique for adding Maven dependencies to Ant. I thought that Ivy was meant to do this but then I realized that it is only an Ant-sty

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-19 04:03

    There are a set of ant tasks for Mercury that allow you to perform dependency management tasks, specify configuration (e.g. server credentials), modify/alter the ant path and write to the repository. See this blog for details.

    There are also Maven tasks for ant, though they are not as fully featured. Maven is moving towards Mercury (particularly for Maven3) so it makes sense to use the Mercury tasks.

    The following configuration reads the dependencies from the specified pom and populates the specified variable with the resultant path:

    
      
        
      
    
    

提交回复
热议问题