Hi Robert,
Try cleaning out your repo by deleting all versions of the
maven-archetype-plugin (including metadata and pom files). Then execute
archetype:create again. Sometimes, its because the artifact or metadata
got corrupted.
HTH,
Deng
Robert Hadfield wrote:
Hi, I have tried several times now to get maven, just to try it out.
I've been pretty disappointed at not being able to get going after 5
or 6 attempts over the last few months.
I have followed the steps in the 5 minute guide (and the quickstart -
I seem to get the same problem whatever I try).
Maven in 5 minutes:
Installation - done:
cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn --version
Maven version: 2.0.7
Java version: 1.5.0_07
OS name: "mac os x" version: "10.4.10" arch: "i386"
I have a direct (ISP) connection to the internet so I assume I don't
need any special 'network setup' to be done.
Next step, try
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn
archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[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: Sun Jul 08 10:27:19 BST 2007
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------
env output shows:
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin/maven-2.0.7/bin
PWD=/Users/robhadfield/Documents/workspace
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
M2_HOME=/usr/local/bin/maven-2.0.7
I've found similar reports of these symptoms but occurring at the
build stage (next step).
I have no idea what I've done wrong here - everything looks like it is
set correctly. I can't think of anything that should be different for
my system. Can anyone help?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]