aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven error when try to use command Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven error when try to use command "mvn package"" Watch "Maven error when try to use command "mvn package"" New topic
Author

Maven error when try to use command "mvn package"

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 655
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?


SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

Try placing it at:

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

where $M2_REPO is the maven repository location.


JBoss In Action
Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 655
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

Joined: May 14, 2008
Posts: 5536

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

Joined: Apr 12, 2005
Posts: 655
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

Joined: May 14, 2008
Posts: 5536

The default maven configuration file is at maven_home/conf/settings.xml.

See also guide to configuring maven
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven error when try to use command "mvn package"
 
Similar Threads
new to maven, error in mvn war:war
Maven - plugin downoading problem
maven java:compile
How use sonar for an existing project in eclipse ?
maven: mvn clean ERROR