Meaningless Drivel is fun!*
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
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: 2376
    
  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: 2376
    
  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
 
jQuery in Action, 2nd edition
 
subject: Ant task to force update of maven repository