maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: Apache Maven-2.2.1 failed to download repository
Date Thu, 03 Jan 2013 11:26:38 GMT
Have you tried accessing these URLs through a web browser? That should give
you a clue about why it doesn't work.

/Anders


On Thu, Jan 3, 2013 at 12:23 PM, NeelamSharma <neelamudr@gmail.com> wrote:

> I have tried downloading maven using my proxy settings, still it failed at
> same step. I have tried with my personal network, LAN, proxy settings, but
> all producing same error. Is there other way to download it.
>
>
> [DEBUG] Connecting to repository: 'glassfish-repo-archive' with url:
> 'http://dow
> nload.java.net/maven/glassfish/'.
> [DEBUG] Using Proxy: 192.168.0.198
> [DEBUG] Using Proxy: 192.168.0.198
> Downloading:
> http://download.java.net/maven/glassfish//org/apache/maven/shared/m
> aven-osgi/0.2.0/maven-osgi-0.2.0.jar
> Downloading:
> http://download.java.net/maven/glassfish//org/codehaus/plexus/plexu
> s-utils/1.1/plexus-utils-1.1.jar
> [DEBUG] Unable to locate resource in repository
> org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate
> resource
> in repository
>         at
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
> ata(LightweightHttpWagon.java:139)
>         at
> org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:11
> 6)
>         at
> org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
>         at
> org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(D
> efaultWagonManager.java:546)
>         at
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:427)
>         at
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:382)
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:216)
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:90)
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArt
> ifactTask.resolveArtifact(DefaultArtifactResolver.java:456)
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArt
> ifactTask.run(DefaultArtifactResolver.java:433)
>         at
> hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecu
> tor.runWorker(ThreadPoolExecutor.java:1061)
>         at
> hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecu
> tor$Worker.run(ThreadPoolExecutor.java:575)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.io.FileNotFoundException:
> http://download.java.net/maven/glassfi
> sh/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
>         at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown
> Source)
>
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
> onstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at
> sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.j
> ava:1491)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpU
> RLConnection.java:1485)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
> nection.java:1139)
>         at
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
> ata(LightweightHttpWagon.java:122)
>         ... 13 more
> Caused by: java.io.FileNotFoundException:
> http://download.java.net/maven/glassfi
> sh/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
> nection.java:1434)
>         at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379
> )
>         at
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
> ata(LightweightHttpWagon.java:115)
>         ... 13 more
> [DEBUG] Using Wagon implementation lightweight from default mapping for
> protocol
>  http
> [INFO] Unable to find resource
> 'org.apache.maven.shared:maven-osgi:jar:0.2.0' in
>  repository glassfish-repo-archive
> (http://download.java.net/maven/glassfish/)
> [DEBUG] Trying repository glassfish-maven-repository
> [DEBUG] Using Wagon implementation lightweight from default mapping for
> protocol
>  http
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] Connecting to repository: 'glassfish-maven-repository' with url:
> 'http:/
> /maven.glassfish.org/content/groups/glassfish-group/'.
> [DEBUG] Using Proxy: 192.168.0.198
> Downloading:
> http://maven.glassfish.org/content/groups/glassfish-group//org/apac
> he/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
> [DEBUG] Unable to locate resource in repository
> org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate
> resource
> in repository
>         at
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
> ata(LightweightHttpWagon.java:139)
>         at
> org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:11
> 6)
>         at
> org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
>         at
> org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(D
> efaultWagonManager.java:546)
>         at
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:427)
>         at
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:382)
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:216)
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:90)
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArt
> ifactTask.resolveArtifact(DefaultArtifactResolver.java:456)
>         at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArt
> ifactTask.run(DefaultArtifactResolver.java:433)
>         at
> hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecu
> tor.runWorker(ThreadPoolExecutor.java:1061)
>         at
> hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecu
> tor$Worker.run(ThreadPoolExecutor.java:575)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.io.FileNotFoundException:
> http://download.java.net/maven/glassfi
> sh/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>         at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown
> Source)
>
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
> onstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at
> sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.j
> ava:1491)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpU
> RLConnection.java:1485)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
> nection.java:1139)
>         at
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
> ata(LightweightHttpWagon.java:122)
>         ... 13 more
> Caused by: java.io.FileNotFoundException:
> http://download.java.net/maven/glassfi
> sh/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
> nection.java:1434)
>         at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379
> )
>         at
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
> ata(LightweightHttpWagon.java:115)
>         ... 13 more
> [DEBUG] Using Wagon implementation lightweight from default mapping for
> protocol
>  http
> [INFO] Unable to find resource 'org.codehaus.plexus:plexus-utils:jar:1.1'
> in
> rep
> ository glassfish-repo-archive (http://download.java.net/maven/glassfish/)
> [DEBUG] Trying repository glassfish-maven-repository
> [DEBUG] Using Wagon implementation lightweight from default mapping for
> protocol
>  http
> [DEBUG] Checking for pre-existing User-Agent configuration.
> [DEBUG] Adding User-Agent configuration.
> [DEBUG] Connecting to repository: 'glassfish-maven-repository' with url:
> 'http:/
> /maven.glassfish.org/content/groups/glassfish-group/'.
> [DEBUG] Using Proxy: 192.168.0.198
> Downloading:
> http://maven.glassfish.org/content/groups/glassfish-group//org/code
> haus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [DEBUG] attempting to create parent directories for destination:
> maven-osgi-0.2.
> 0.jar.tmp
> 185b downloaded  (maven-osgi-0.2.0.jar)
> [DEBUG] attempting to create parent directories for destination:
> plexus-utils-1.
> 1.jar.tmp
> 185b downloaded  (plexus-utils-1.1.jar)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '6c9fd3d150
> b8a5f0ca676f49b8ed603793cabebb'; remote = '<html>
> <head><title>301' - RETRYING
> Downloading:
> http://maven.glassfish.org/content/groups/glassfish-group//org/apac
> he/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '6c9fd3d150
> b8a5f0ca676f49b8ed603793cabebb'; remote = '<html>
> <head><title>301' - RETRYING
> Downloading:
> http://maven.glassfish.org/content/groups/glassfish-group//org/code
> haus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [DEBUG] attempting to create parent directories for destination:
> maven-osgi-0.2.
> 0.jar.tmp
> 185b downloaded  (maven-osgi-0.2.0.jar)
> [DEBUG] attempting to create parent directories for destination:
> plexus-utils-1.
> 1.jar.tmp
> 185b downloaded  (plexus-utils-1.1.jar)
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '6c9fd3d150
> b8a5f0ca676f49b8ed603793cabebb'; remote = '<html>
> <head><title>301' - IGNORING
> [DEBUG] Using Wagon implementation lightweight from default mapping for
> protocol
>  http
> [DEBUG]   Artifact resolved
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> '6c9fd3d150
> b8a5f0ca676f49b8ed603793cabebb'; remote = '<html>
> <head><title>301' - IGNORING
> [DEBUG] Using Wagon implementation lightweight from default mapping for
> protocol
>  http
> [DEBUG]   Artifact resolved
> [DEBUG]  The following artifacts were filtered out for plugin:
> com.sun.enterpris
> e:osgiversion-maven-plugin:0.4.11 because they're already in the core of
> Maven:
>
> org.apache.maven:maven-plugin-api:jar:2.0.4:runtime
>
> These will use the artifact files already in the core ClassRealm instead,
> to
> all
> ow them to be included in PluginDescriptor.getArtifacts().
>
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal
> 'com.sun.enterprise:o
> sgiversion-maven-plugin:0.4.11:compute-osgi-version': Unable to load the
> mojo 'c
> om.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version' in
> the p
> lugin 'com.sun.enterprise:osgiversion-maven-plugin'. A required class is
> missing
> : Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
> org.apache.maven.shared.osgi.Maven2OsgiConverter
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
> the pl
> ugin manager executing goal
> 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:
> compute-osgi-version': Unable to load the mojo
> 'com.sun.enterprise:osgiversion-m
> aven-plugin:0.4.11:compute-osgi-version' in the plugin
> 'com.sun.enterprise:osgiv
> ersion-maven-plugin'. A required class is missing:
> Lorg/apache/maven/shared/osgi
> /Maven2OsgiConverter;
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:698)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:556)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:535)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:387)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:348)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:180)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
> 0)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.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.PluginManagerException: Unable to load
> the mo
> jo
> 'com.sun.enterprise:osgiversion-maven-plugin:0.4.11:compute-osgi-version'
> in
> the plugin 'com.sun.enterprise:osgiversion-maven-plugin'. A required class
> is mi
> ssing: Lorg/apache/maven/shared/osgi/Maven2OsgiConverter;
>         at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
> tPluginManager.java:679)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:468)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:694)
>         ... 17 more
> Caused by: java.lang.NoClassDefFoundError:
> Lorg/apache/maven/shared/osgi/Maven2O
> sgiConverter;
>         at java.lang.Class.getDeclaredFields0(Native Method)
>         at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
>         at java.lang.Class.getDeclaredField(Class.java:1880)
>         at
> hidden.org.codehaus.plexus.util.ReflectionUtils.getFieldByNameIncludi
> ngSuperclasses(ReflectionUtils.java:47)
>         at
> org.codehaus.plexus.component.composition.FieldComponentComposer.getF
> ieldByName(FieldComponentComposer.java:212)
>         at
> org.codehaus.plexus.component.composition.FieldComponentComposer.find
> MatchingField(FieldComponentComposer.java:171)
>         at
> org.codehaus.plexus.component.composition.FieldComponentComposer.asse
> mbleComponent(FieldComponentComposer.java:62)
>         at
> org.codehaus.plexus.component.composition.DefaultComponentComposerMan
> ager.assembleComponent(DefaultComponentComposerManager.java:68)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPl
> exusContainer.java:1486)
>         at
> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPha
> se.execute(CompositionPhase.java:29)
>         at
> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(Abstract
> LifecycleHandler.java:101)
>         at
> org.codehaus.plexus.component.manager.AbstractComponentManager.startC
> omponentLifecycle(AbstractComponentManager.java:105)
>         at
> org.codehaus.plexus.component.manager.AbstractComponentManager.create
> ComponentInstance(AbstractComponentManager.java:95)
>         at
> org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo
> mponent(PerLookupComponentManager.java:48)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
> ner.java:331)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
> ner.java:440)
>         at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
> tPluginManager.java:652)
>         ... 19 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.shared.osgi.Maven2
> OsgiConverter
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
> oader.java:195)
>         at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
> m.java:255)
>         at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
> m.java:274)
>         at
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
> java:214)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         ... 36 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 39 seconds
> [INFO] Finished at: Thu Jan 03 16:35:32 IST 2013
> [INFO] Final Memory: 16M/105M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Apache-Maven-2-2-1-failed-to-download-repository-tp5741351p5741555.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message