Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mvn --version runs but not mvn:install

 
Craig Wong
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[ERROR] BUILD ERROR
[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.

Thanks!
 
Craig Wong
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fixed my internet connection and it's working better now.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic