File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes mvn --version runs but not mvn:install Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "mvn --version runs but not mvn:install" Watch "mvn --version runs but not mvn:install" New topic

mvn --version runs but not mvn:install

Craig Wong

Joined: Nov 08, 2005
Posts: 9
Hi, I want to use maven2 to publish a Hello World portlet into Pluto.

"mvn -version" works OK:

cd c:\documents and settings\Craig\my documents\downloaded software\maven-2.0.4-bin\maven-2.0.4\bin
mvn -version

But if I try:

mvn install

I get something like this:

[INFO] Scanning for projects...
[INFO] Building Maven Default Project
[INFO] task-segment: [install]
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central
[WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-resources-plugin' could not be retrieved from repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO] the plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found.

Pretty much anything I try (e.g. "mvn -Dplugin=install help escribe")returns a similar set of messages.

Should I be looking for a problem with my installation, my maven repository, my classpath, my jar files? Any hint would be appreciated.

Craig Wong

Joined: Nov 08, 2005
Posts: 9
I fixed my internet connection and it's working better now.

subject: mvn --version runs but not mvn:install
jQuery in Action, 3rd edition