Hi,
I have installed Maven2 in a virtual machine Linux redhat , 
it seems ok :
[rym@localhost ~]$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_24
Java home: /usr/java/jdk1.6.0_24/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.18-194.el5" arch: "i386" Family: "unix"

BUT when  I use the cmd : archetype:generate the result is :
[rym@localhost ~]$ mvn archetype:generate
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not
be retrieved from repository: central due to an error: Error
transferring file: repo1.maven.org
[INFO] Repository 'central' will be blacklisted
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exist or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Apr 28 08:57:59 EDT 2011
[INFO] Final Memory: 1M/15M
[INFO]
------------------------------------------------------------------------

Also I can't find the file setting.xml in the directory .m2 , .m2 is
empty!!!!!

What is the problem? Please help me.


Best regards
Rym Azzouni

Reply via email to