Hi,

Try doing the following in the command line:

mvn archetype:create –DarchetypeArtifactId=maven-archetype-webapp 
–DgroupId=top.level.java.package –DartifactId=dirName

top.level.java.package should be name_of_package

dirName should be application_name

Please note:   I tried to run the above cmd and the error read “Unable to 
determine the release version.  Try downloading the file manually from the 
project website.” 
       *****Note if you get the above error make sure that the spacing is 
correct.  There is only a space between the webapp and the -Dgroup and the 
package and -Dartifact commands. 

Hopefully this helps,

Matilda



-----Original Message-----
From: Barnes, Mike [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 12:54 PM
To: users@maven.apache.org
Subject: new user

I just finished downloading maven 2 and am now trying to create a new
project using the example described on the getting started page. I am
able to execute mvn -version with no problems, however when I attempt to
execute 

 

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

 

I get 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 retri

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

st or no valid version could be found

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

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

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

[INFO] Total time: 22 seconds

[INFO] Finished at: Mon Jul 31 12:51:57 EDT 2006

[INFO] Final Memory: 1M/2M

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

 

Based on the above message I would have expected the archtype plugin to
already be downloaded. BTW, I am behind a firewall which uses a policy
file (not sure how to configure this in the proxy section)

 

 

Thanks for any help.

 

 

Mike



-----------------------------------------
Attention:
Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorized to state them to be the views of any such entity. The
information contained in this message and or attachments is
intended only for the person or entity to which it is addressed and
may contain confidential and/or privileged material.  If you
received this in error, please contact the sender and delete the
material from any system and destroy any copies.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to