maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wayne Fay" <wayne...@gmail.com>
Subject Re: Setup gotchya
Date Tue, 02 Oct 2007 01:22:05 GMT
Why are you trying to connect to ibiblio at all? Just use the standard
repo1.maven.org as suggested by John.

Additionally, try adding -U to force updates of artifacts. And/or
delete the ~/.m2/repository directory to get rid of "bad metadata" and
try again with a -U.

Wayne

On 10/1/07, John Quinn <quinnjohn58@gmail.com> wrote:
> Why not try commenting ibiblio out in your settings.xml to check your
> theory.
>
> Then downloads would come from the central repository:
>
> <url>http://repo1.maven.org/maven2</url>
>
> On 10/1/07, Jason Nerothin <jasonnerothin@gmail.com> wrote:
> >
> > Hello,
> >
> > I've been trying to get maven 2 working for a while now, and have had next
> > to zero luck doing so. I suspect has something to do with codehaus servers
> > being down, which maven apparently wishes to contact for downloading from
> > "central". I've tried forcing mvn to contact a mirror in place of central,
> > also to no avail. I'm hoping that someone can point me in the right
> > direction and will point me at the gotchya I'm missing here.
> >
> > Debug info follows:
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > jason@foreman:~$ mvn --version
> > Maven version: 2.0.7
> > Java version: 1.6.0
> > OS name: "linux" version: "2.6.20-16-generic" arch: "i386"
> >
> > jason@foreman:~$ mvn archetype:create
> > -DgroupId=com.whatever-DartifactId=whatever -e
> > + Error stacktraces are turned on.
> > [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] 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: Mon Oct 01 16:06:18 CDT 2007
> > [INFO] Final Memory: 1M/4M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > //// DIFFERENT FLAG ////
> >
> > jason@foreman:~$ mvn archetype:create
> > -DgroupId=com.whatever-DartifactId=whatever -X
> > + Error stacktraces are turned on.
> > Maven version: 2.0.7
> > Java version: 1.6.0
> > OS name: "linux" version: "2.6.20-16-generic" arch: "i386"
> > [DEBUG] Building Maven user-level plugin registry from:
> > '/home/jason/.m2/plugin-registry.xml'
> > [DEBUG] Building Maven global-level plugin registry from:
> > '/home/jason/programs/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
> > [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
> > [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: Mon Oct 01 16:07:24 CDT 2007
> > [INFO] Final Memory: 1M/4M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > ////// settings.xml //// (same result in error logs)
> > <settings>
> > <mirrors>
> >    <mirror>
> >      <id>ibiblio.net</id>
> >      <url>http://www.ibiblio.net/pub/packages/maven2</url>
> >      <mirrorOf>central</mirrorOf> // also tried it with
> > <mirrorOf>*</mirrorOf>
> >    </mirror>
> > </mirrors>
> > </settings>
> > --
> > ========================================================
> > Jason Nerothin
> > Programmer/Analyst
> > Gates Business Solutions
> > ========================================================
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message