You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Azzouni, Rym" <ry...@hraccess.com> on 2011/04/28 11:21:57 UTC

Problem with Maven2 installation

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

Re: Problem with Maven2 installation

Posted by Anders Hammar <an...@hammar.net>.
You need to create settings.xml yourself. Maven doesn't create it for you.

Could it be that you need to configure a web proxy for Maven to use to
access the Internet (and central)?

/Anders

On Thu, Apr 28, 2011 at 11:21, Azzouni, Rym <ry...@hraccess.com>wrote:

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