• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to download remote repo using maven 3

 
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you get when you run it?

WP
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

WP


I tried and all i get is this error
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic