File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven error when try to use command "mvn package"

 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've been getting an error when I try to package an application I got from Internet which uses Wicket framework. This app uses maven, and when I try to execute the command "mvn package" I receive an error:




I downloaded the file "maven-resources-plugin-2.2.jar" manually. Which path should I put this file in?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try placing it at:

$M2_REPO/org/apache/maven/maven-resources-plugin/2.2

where $M2_REPO is the maven repository location.
 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I found this directory:


Is this the maven repository location?

I tried to put the files (both .jar and .pom) inside directory

but I get the same error...

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are logged in as p012345, and you did not change the default local repository location, then that is the correct path.

Do you go through a proxy when you browse the web? If so, you will have to configure maven to use that same proxy.
 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Peter Johnson:
If you are logged in as p012345, and you did not change the default local repository location, then that is the correct path.

Do you go through a proxy when you browse the web? If so, you will have to configure maven to use that same proxy.


I don't know if I go through a proxy... how do I configure maven?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default maven configuration file is at maven_home/conf/settings.xml.

See also guide to configuring maven
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic