New maven user: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-09 Thread Robert Hadfield
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]



Re: 5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-08 Thread Robert Hadfield
Hi, I commented out the  node in the settings.xml and in now 
works. (Woo hoo!)


Thanks very much for your help :-)

Rob.


Wendy Smoak wrote:

On 7/8/07, Robert Hadfield <[EMAIL PROTECTED]> wrote:


Just further to my last note, I started tcpdump before running maven and
I see a whole lot of HTTP 404's  which makes me think the repository is
the problem, rather than my install...

...

Apache/2 Server at vhost.ibiblio.org Port 80


Have you configured a mirror?  Try removing that configuration.  By
default Maven uses http://repo1.maven.org/maven2, which is working
fine for me.




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



Re: 5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-08 Thread Robert Hadfield
Just further to my last note, I started tcpdump before running maven and 
I see a whole lot of HTTP 404's  which makes me think the repository is 
the problem, rather than my install...


As I'm just starting out with maven, I don't really know how to diagnose 
what's going on here.



GET /pub/packages/maven2/org/apache/maven/plugins/maven-metadata.xml 
HTTP/1.1


Accept-Encoding: gzip

Pragma: no-cache

User-Agent: Java/1.5.0_07

Host: ftp.ggi-project.org


Response:

HTTP/1.1 404 Not Found

Date: Sun, 08 Jul 2007 19:48:58 GMT

Server: Apache/2

Content-Length: 449






404 Not Found

Not Found
The requested URL 
/pub/packages/maven2/org/apache/maven/plugins/maven-metadata.xml was not 
found on this server.

Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the 
request.


Apache/2 Server at vhost.ibiblio.org Port 80


There are several other requests in the tcpdump which all get HTTP 404's.




Wayne Fay wrote:

Try mvn -X -U to see more debug output. Do you perhaps have some
software firewall that's blocking Java from reaching out to the Net or
something -- I know you've got a Mac, but we've seen that sometimes on
this list with people on Windows.

Wayne

On 7/8/07, Robert Hadfield <[EMAIL PROTECTED]> wrote:

Hi, tried this but get the same result:

cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn -U
archetype:create   -DarchetypeGroupId=org.apache.maven.archetypes
-DgroupId=com.mycompany.app   -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
checking for updates from central
[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 19:03:15 BST 2007
[INFO] Final Memory: 1M/2M
[INFO]


Kind regards,

Rob


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



Re: 5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-08 Thread Robert Hadfield
-





Wayne Fay wrote:

Try mvn -X -U to see more debug output. Do you perhaps have some
software firewall that's blocking Java from reaching out to the Net or
something -- I know you've got a Mac, but we've seen that sometimes on
this list with people on Windows.

Wayne

On 7/8/07, Robert Hadfield <[EMAIL PROTECTED]> wrote:

Hi, tried this but get the same result:

cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn -U
archetype:create   -DarchetypeGroupId=org.apache.maven.archetypes
-DgroupId=com.mycompany.app   -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
checking for updates from central
[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 19:03:15 BST 2007
[INFO] Final Memory: 1M/2M
[INFO]


Kind regards,

Rob


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



Re: 5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-08 Thread Robert Hadfield

Hi, tried this but get the same result:

cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn -U 
archetype:create   -DarchetypeGroupId=org.apache.maven.archetypes   
-DgroupId=com.mycompany.app   -DartifactId=my-app

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: 
checking for updates from central
[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 19:03:15 BST 2007
[INFO] Final Memory: 1M/2M
[INFO] 



Kind regards,

Rob



Wayne Fay wrote:

Try adding a -U to the mvn archetype:create line.

Wayne




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



5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-07-08 Thread Robert Hadfield
Hi, I have tried several times now to get maven, just to try it out. 

I have followed the steps in the 5 minute guide (and the quickstart) - I 
seem to get the same problem whatever I try.


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]