This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant task to force update of maven repository Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant task to force update of maven repository " Watch "Ant task to force update of maven repository " New topic
Author

Ant task to force update of maven repository

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 266
Hi Friends,

I have the following requirement:

I want to write an ant task which takes the update of the local repository of maven every time it's run. Please do help me with this. I have searched the net but got nothing worthwhile. Having lot of difficulty in this.


Thanks and Regards,
Sid
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2341
    
  28

If you want to integrate Ant with Maven repository, you might want to look at Ivy It provides an ant target that downloads artifacts and their dependencies from maven repos
Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 266
Jayesh A Lalwani wrote:If you want to integrate Ant with Maven repository, you might want to look at Ivy It provides an ant target that downloads artifacts and their dependencies from maven repos


Hi Jayesh,
Could you please help me with some example to get me started. I am new to Ivy and need to get an ant task to take the latest repository from maven.

Thanks and Regards,
Sid
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2341
    
  28

The example is right in the link that I gave you. Actually, I linked you right to the simple example. Here it is again if you need it http://ant.apache.org/ivy/history/latest-milestone/tutorial/start.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant task to force update of maven repository