Discussion:
5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
Robert Hadfield
2007-07-08 17:40:43 UTC
Permalink
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?
Wayne Fay
2007-07-08 17:49:56 UTC
Permalink
Try adding a -U to the mvn archetype:create line.

Wayne
Post by 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.
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]
------------------------------------------------------------------------
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?
---------------------------------------------------------------------
Robert Hadfield
2007-07-08 18:04:27 UTC
Permalink
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
Post by Wayne Fay
Try adding a -U to the mvn archetype:create line.
Wayne
<snip>
Wayne Fay
2007-07-08 18:16:46 UTC
Permalink
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
Post by Robert Hadfield
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
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
Robert Hadfield
2007-07-08 18:28:07 UTC
Permalink
Hi, I have no software firewall - nothing that I can think of that would
stop me reaching the outside world!

Could this be a problem with data at the external repository?

cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn -X -U
archetype:create -DarchetypeGroupId=org.apache.maven.archetypes
-DgroupId=com.mycompany.app -DartifactId=my-app
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.5.0_07
OS name: "mac os x" version: "10.4.10" arch: "i386"
[DEBUG] Building Maven user-level plugin registry from:
'/Users/robhadfield/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/usr/local/bin/maven-2.0.7/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[INFO] org.apache.maven.plugins: checking for updates from central
[DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be
found on repository: central
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[INFO] org.codehaus.mojo: checking for updates from central
[DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found
on repository: central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
checking for updates from central
[DEBUG] repository metadata for: 'artifact
org.apache.maven.plugins:maven-archetype-plugin' could not be found on
repository: central
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest version

org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
release version

org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
[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]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no
valid version could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1286)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1522)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.apache.maven.plugin.version.PluginVersionNotFoundException: The
plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist
or no valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:228)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:90)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:166)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257)
... 14 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sun Jul 08 19:18:32 BST 2007
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------
Post by Wayne Fay
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
Post by Robert Hadfield
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
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
---------------------------------------------------------------------
Robert Hadfield
2007-07-08 20:46:54 UTC
Permalink
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




<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL
/pub/packages/maven2/org/apache/maven/plugins/maven-metadata.xml was not
found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the
request.</p>
<hr>
<address>Apache/2 Server at vhost.ibiblio.org Port 80</address>
</body></html>

There are several other requests in the tcpdump which all get HTTP 404's.
Post by Wayne Fay
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
Post by Robert Hadfield
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
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
2007-07-08 21:36:20 UTC
Permalink
Yes, that's certainly the problem. It seems like the ibiblio mirror
you're automagically using has some troubles.

I'm not quite sure how to force ibiblio to give you a different
mirror. Personally, I would just set up a <repository> in settings.xml
pointing at repo1.maven.org that is a <mirrorOf>central</mirrorOf>,
and move on with life.

If you can't figure it out (Google should be helpful), email again,
and I can post specifics. ;-)

Wayne
Post by 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
HTTP/1.1 404 Not Found
Date: Sun, 08 Jul 2007 19:48:58 GMT
Server: Apache/2
Content-Length: 449
Wendy Smoak
2007-07-08 22:13:04 UTC
Permalink
Post by 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...
...
Post by Robert Hadfield
<address>Apache/2 Server at vhost.ibiblio.org Port 80</address>
Have you configured a mirror? Try removing that configuration. By
default Maven uses http://repo1.maven.org/maven2, which is working
fine for me.
--
Wendy
Robert Hadfield
2007-07-09 06:10:20 UTC
Permalink
Hi, I commented out the <mirrors> node in the settings.xml and in now
works. (Woo hoo!)

Thanks very much for your help :-)

Rob.
Post by Wendy Smoak
Post by 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...
...
Post by Robert Hadfield
<address>Apache/2 Server at vhost.ibiblio.org Port 80</address>
Have you configured a mirror? Try removing that configuration. By
default Maven uses http://repo1.maven.org/maven2, which is working
fine for me.
Wayne Fay
2007-07-09 16:12:00 UTC
Permalink
For the future, information like this ("I configured a mirror in
settings.xml") is useful to mention in your first email... ;-)

Wayne
Post by Robert Hadfield
Hi, I commented out the <mirrors> node in the settings.xml and in now
works. (Woo hoo!)
Thanks very much for your help :-)
Rob.
Post by Wendy Smoak
Post by 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...
...
Post by Robert Hadfield
<address>Apache/2 Server at vhost.ibiblio.org Port 80</address>
Have you configured a mirror? Try removing that configuration. By
default Maven uses http://repo1.maven.org/maven2, which is working
fine for me.
---------------------------------------------------------------------
Guillaume Bilodeau
2007-08-17 15:29:33 UTC
Permalink
I'm getting a similar error while trying to setup Maven in a new environment:

*****

+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.6.0_02
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'D:\Documents and
Settings\T071543\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'D:\maven-2.0.7\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[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
[DEBUG] Exception
org.apache.maven.wagon.TransferFailedException: Error transferring file
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:104)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:462)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:363)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:364)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97)
at
org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings(DefaultPluginMappingManager.java:103)
at
org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings(DefaultPluginMappingManager.java:87)
at
org.apache.maven.plugin.DefaultPluginMappingManager.getByPrefix(DefaultPluginMappingManager.java:61)
at
org.apache.maven.plugin.DefaultPluginManager.getPluginDefinitionForPrefix(DefaultPluginManager.java:149)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:666)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:611)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:631)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1000)
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83)
... 23 more
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Skipping blacklisted repository central
[DEBUG] Skipping blacklisted repository central
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest version

org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
release version

org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
[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]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid
version could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1286)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1522)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist
or no valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:228)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:90)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:166)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257)
... 14 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Aug 17 11:18:59 EDT 2007
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------

*****

I am behind no firewall, I have setup no mirrors - this is a clean install.
It's obviously a network error as the SocketException shows. Actually,
ibiblio.org has a hard time redirecting to mirrors.ibiblio.org - takes 1 or
2 minutes to do so in a web browser. Could this be the problem?

Thanks,
GB
--
View this message in context: http://www.nabble.com/5-minute-quickstart%3A-The-plugin-%27org.apache.maven.plugins%3Amaven-archetype-plugin%27-does-not-exist-or-no-valid-version-could-be-found-tf4045296s177.html#a12201683
Sent from the Maven - Users mailing list archive at Nabble.com.
Wendy Smoak
2007-08-17 15:35:01 UTC
Permalink
Post by Guillaume Bilodeau
I am behind no firewall, I have setup no mirrors - this is a clean install.
It's obviously a network error as the SocketException shows. Actually,
ibiblio.org has a hard time redirecting to mirrors.ibiblio.org - takes 1 or
2 minutes to do so in a web browser. Could this be the problem?
If it's a completely clean install, it shouldn't be talking to ibiblio
at all... the central repo is at repo1.maven.org/maven2 .

Can you clarify whether this happens with an empty local repository?
(I'm not sure if this is a fresh install of Maven, or a completely
clean new machine.)

Try deleting the local repository and/or adding -U to the command line.
--
Wendy
Guillaume Bilodeau
2007-08-17 15:39:25 UTC
Permalink
Post by Wendy Smoak
Post by Guillaume Bilodeau
I am behind no firewall, I have setup no mirrors - this is a clean install.
It's obviously a network error as the SocketException shows. Actually,
ibiblio.org has a hard time redirecting to mirrors.ibiblio.org - takes 1 or
2 minutes to do so in a web browser. Could this be the problem?
If it's a completely clean install, it shouldn't be talking to ibiblio
at all... the central repo is at repo1.maven.org/maven2 .
Can you clarify whether this happens with an empty local repository?
(I'm not sure if this is a fresh install of Maven, or a completely
clean new machine.)
Try deleting the local repository and/or adding -U to the command line.
--
Wendy
---------------------------------------------------------------------
It's a fresh, clean install and the repository is empty. This was already
executed with the -U -X options. Strange isn't it?
--
View this message in context: http://www.nabble.com/5-minute-quickstart%3A-The-plugin-%27org.apache.maven.plugins%3Amaven-archetype-plugin%27-does-not-exist-or-no-valid-version-could-be-found-tf4045296s177.html#a12201808
Sent from the Maven - Users mailing list archive at Nabble.com.
Guillaume Bilodeau
2007-08-24 14:43:35 UTC
Permalink
Post by Guillaume Bilodeau
Post by Wendy Smoak
Post by Guillaume Bilodeau
I am behind no firewall, I have setup no mirrors - this is a clean install.
It's obviously a network error as the SocketException shows. Actually,
ibiblio.org has a hard time redirecting to mirrors.ibiblio.org - takes 1 or
2 minutes to do so in a web browser. Could this be the problem?
If it's a completely clean install, it shouldn't be talking to ibiblio
at all... the central repo is at repo1.maven.org/maven2 .
Can you clarify whether this happens with an empty local repository?
(I'm not sure if this is a fresh install of Maven, or a completely
clean new machine.)
Try deleting the local repository and/or adding -U to the command line.
--
Wendy
---------------------------------------------------------------------
It's a fresh, clean install and the repository is empty. This was already
executed with the -U -X options. Strange isn't it?
Even stranger: running mvn -U install on a project with new dependencies
works ONCE per day. After this successful run, the above message comes up
again. Changing the system date has no effect whatsoever.

Surely this must be a firewall issue - I should have mentioned that I am
behind a firewall, but not behind a proxy. Is this possible?
--
View this message in context: http://www.nabble.com/5-minute-quickstart%3A-The-plugin-%27org.apache.maven.plugins%3Amaven-archetype-plugin%27-does-not-exist-or-no-valid-version-could-be-found-tf4045296s177.html#a12313790
Sent from the Maven - Users mailing list archive at Nabble.com.
Wayne Fay
2007-07-08 21:39:49 UTC
Permalink
I would assume your problem is closely related to Robert's. I guess
ibiblio is having some troubles this weekend with mirrors etc.

Wayne
Hi, thank you for this discussion.
I wanted to try Maven 2 too and have expirienced the same problem.
Because my computer uses an internet connection through a proxy server,
I have adjusted the setting.xml file. During the execution of the
commands, the firewall was switched off.
D:\SEP\IDP\project>mvn -X -U archetype:create
-DgroupId=com.mycompany.app -DartifactId=my-app
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.6.0_01
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\Nie\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\Program
Files\maven-2.0.7\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[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
[DEBUG] Exception
org.apache.maven.wagon.TransferFailedException: Error transferring file
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:104)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:462)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:363)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:364)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97)
at
org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings(DefaultPluginMappingManager.java:103)
at
org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings(DefaultPluginMappingManager.java:87)
at
org.apache.maven.plugin.DefaultPluginMappingManager.getByPrefix(DefaultPluginMappingManager.java:61)
at
org.apache.maven.plugin.DefaultPluginManager.getPluginDefinitionForPrefix(DefaultPluginManager.java:149)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.net.SocketException: Connection reset by peer: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:515)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:318)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:733)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:658)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:981)
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83)
... 23 more
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Skipping blacklisted repository central
[DEBUG] Skipping blacklisted repository central
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest version
org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST
[DEBUG] maven-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
release version
org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-archetype-plugin:pom:RELEASE
[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]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no
valid versio
n could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1286)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1522)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
org.apache.maven.plugin.version.PluginVersionNotFoundException: The
plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist
or no valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:228)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:90)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:166)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257)
... 14 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Sun Jul 08 20:37:33 CEST 2007
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------
Loading...