wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

mvn --version runs but not mvn:install

Craig Wong
Greenhorn

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
[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

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

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mvn --version runs but not mvn:install
 
Similar Threads
maven java:compile
maven: mvn clean ERROR
The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist
How to create Hello World projects using Maven for Hibernate, JPA, EJB, ActiveMQ?
Compile Steps in Maven