maven error when trying to build project from scratch..

2 posts / 0 new
Last post
sasi
Offline
Joined: 08/10/2010
maven error when trying to build project from scratch..

Hi All,

 

Iam trying to build the new jspresso project from the scratch and facing the below issue.

 

1) maven version 2.0.9.

2)created folder jspresso in c drive

3)executed the below commqand

archetype:generate-DarchetypeCatalog=http://repository.jspresso.org/maven2/

4)getting the below exception

*******************************************************************************

 

C:\jspresso1>mvn archetype:generate-DarchetypeCatalog=http://repository.jspresso

.org/maven2/

[INFO] Scanning for projects...

[INFO] artifact archetype:generate-DarchetypeCatalog=http: checking for updates

from central

[WARNING] POM for 'archetype:generate-DarchetypeCatalog=http:pom:LATEST' is inva

lid. It will be ignored for artifact resolution. Reason: Failed to validate POM

for project archetype:generate-DarchetypeCatalog=http at Artifact [archetype:gen

erate-DarchetypeCatalog=http:pom:LATEST]

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

[ERROR] BUILD ERROR

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

[INFO] Error building POM (may not be this project's POM).

 

 

Project ID: archetype:generate-DarchetypeCatalog=http

 

Reason: POM 'archetype:generate-DarchetypeCatalog=http' not found in repository:

 Unable to determine the latest version

 

  archetype:generate-DarchetypeCatalog=http:pom:LATEST

 

 for project archetype:generate-DarchetypeCatalog=http

 

 

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

[INFO] For more information, run Maven with the -e switch

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

[INFO] Total time: 1 second

[INFO] Finished at: Tue Aug 10 20:56:18 SGT 2010

[INFO] Final Memory: 1M/15M

****************************************************************************

 

 

we have tried with maven version 2.2.1 and 2.0.9 as well, resulting the same error.

 

Please explain if we are missing anything.

 

Thanks for your time.

 

Regards,

Sasi.

atao
Offline
Joined: 10/15/2008
maven error when trying to build project from scratch..

Sasi,

In your command line, a white space is required between archetype:generate and -DarchetypeCatalog.

Regards

Pierre