aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes how to download remote repo using maven 3 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 "how to download remote repo using maven 3" Watch "how to download remote repo using maven 3" New topic
Author

how to download remote repo using maven 3

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

hey guys i m preety much new to maven world , and i am using it to download a remote repo , but i m stuck
i have downloaded the maven zip and extracted it in my C:/ and added the path to my environment variable and created the POM.xml file and place it in my bin folder
the pom.xml file is

can any one tell me how i can download the remote repo ?


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

What do you get when you run it?

WP
naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

William P O'Sullivan wrote:What do you get when you run it?

WP

I tried and all i get is this error
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

First, don't place a pom.xml file in the maven bin directory. Instead create a project directory somewhere (not within maven_home)

Second, a pom.xml file is supposed to describe an artifact to be built, such as a JAR or WAR. For that you need source files (of course) and the pom.xml must at minimum contain the artifacts coordinates (groupId, artfiactId, version). That is what it is complaining about.

Third, you don't have to download the repository. Well at least not the whole thing. As you build project, Maven will automatically download the artifacts that it needs and place them into your local repository.

I recommend starting off with the basic tutorials provided in the Maven docs. After that, get both the Better Builds with Maven PDF and Maven the Complete Reference PDF. Once you work your way through those you'll have a better understanding. If you have questions, feel free to ask - we're here to help.


JBoss In Action
naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

Peter Johnson wrote:First, don't place a pom.xml file in the maven bin directory. Instead create a project directory somewhere (not within maven_home)

Second, a pom.xml file is supposed to describe an artifact to be built, such as a JAR or WAR. For that you need source files (of course) and the pom.xml must at minimum contain the artifacts coordinates (groupId, artfiactId, version). That is what it is complaining about.

Third, you don't have to download the repository. Well at least not the whole thing. As you build project, Maven will automatically download the artifacts that it needs and place them into your local repository.

I recommend starting off with the basic tutorials provided in the Maven docs. After that, get both the Better Builds with Maven PDF and Maven the Complete Reference PDF. Once you work your way through those you'll have a better understanding. If you have questions, feel free to ask - we're here to help.

ohh thanks peter you replied i was preety much stuck from 3 days , and thanks for your last line and i will try what you have suggested and ask your help if needed...thanks once again
and one more thing this the above pom.xml file is what Xuggler guys is providing on their website , they should not misguide people....
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

I do not think that xuggler are misleading. I suspect that what they are saying is that their JARs are not in Maven Central, and thus you need to access their repository. Thus they gave you additional entries that you need to add a pom.xml file for an application that will use their JARs. This is a common practice for projects that don't store their JARs in Maven Central.

I think you need to understand Maven a little better first. Play around with building some simple Java apps (that don't use xuggler) first. Then once you are comfortable with that, you will better understand the instructions provide with xuggler. (Of course, this is not to say that xuggler can't improve on their documentation, but they really shouldn't have to educate you on Maven because that information is already available. I say this a someone who has "forced" Maven on my co-workers, and have had to generate my own training videos to educate them. That is a lot of work and still most of my co-workers don't get it, or what benefits it provides. But those who do get it are more than happy.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to download remote repo using maven 3