Hi 

 

I have download the maven2.0.9 and I have set the maven path.

 

Then I have created one folder my-app, in that I have created pom.xml file.

Then I executed this command like this

 

C:\mvnapp>mvn archetype:create -DgroupId=com.mycompany.app
-DartifactId=my-app

 

I am getting the following error: 

 

[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

[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: 32 seconds

[INFO] Finished at: Fri Jun 20 12:03:47 IST 2008

[INFO] Final Memory: 1M/254M

[INFO]
------------------------------------------------------------------------

 

My pom.xml file looks like this:

 

<project xmlns="http://maven.apache.org/POM/4.0.0";

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0

                      http://maven.apache.org/maven-v4_0_0.xsd";>

 

<modelVersion>4.0.0</modelVersion>

<groupId>com.mycompany.app</groupId>

<artifactId>my-app</artifactId>

<packaging>jar</packaging>

<version>1.0-SNAPSHOT</version>

<name>Maven Quick Start Archetype</name>

<url>http://maven.apache.org</url>

 

<dependencies>

                <dependency>

                <groupId>junit</groupId>

                <artifactId>junit</artifactId>

                <version>3.8.1</version>

                <scope>test</scope>

                </dependency>

</dependencies>

</project>

 

So please anything else need to configure and anything else modify to it
pom.xml file.

 

Please help in this  I need urgent.

 

Is there any required to additional configuration.

 

Thanks in Advance.

 

Regards,

KRReddy 

 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

Reply via email to