maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason van Zyl (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MNG-714) When artifact not found on mirror the real site isn't checked
Date Fri, 20 Jan 2006 23:28:12 GMT
     [ http://jira.codehaus.org/browse/MNG-714?page=all ]

Jason van Zyl updated MNG-714:
------------------------------

    Fix Version:     (was: 2.0.3)
                 2.0.4

> When artifact not found on mirror the real site isn't checked
> -------------------------------------------------------------
>
>          Key: MNG-714
>          URL: http://jira.codehaus.org/browse/MNG-714
>      Project: Maven 2
>         Type: Bug

>   Components: Artifacts and Repositories
>     Versions: 2.0-beta-1
>     Reporter: Kenney Westerhof
>     Assignee: John Casey
>      Fix For: 2.0.4

>
> Original Estimate: 3 hours
>         Remaining: 3 hours
>
> I'm using the settings.xml mirror feature as a local cache. Periodically I upload my
local repo
> to the webserver specified as mirror.
> When an artifact cannot be found on the mirror, the original site isn't checked (and
possibly the rest of the sites).
> I'm not sure what the exact function of the mirror is (except caching?), but repo1 is
checked often regardless
> of mirror presence, so I figure it's not meant to totally disable checking the central
repo's.
> Simple reproduction: define a few mirrors in your settings.xml for central, central-plugins
and snapshots, pointing to
> say file://tmp/empty/dir/.
> Stacktrace:
> [DEBUG] Error resolving artifact version from metadata.
> org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository
>         at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:81)
>         at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:70)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:343)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:263)
>         at org.apache.maven.artifact.metadata.AbstractVersionArtifactMetadata.retrieveFromRemoteRepository(AbstractVersionArtifactMetadata.java:93)
>         at org.apache.maven.artifact.transform.AbstractVersionTransformation.retrieveFromRemoteRepository(AbstractVersionTransformation.java:171)
>         at org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:96)
>         at org.apache.maven.artifact.transform.SnapshotTransformation.transformForResolve(SnapshotTransformation.java:43)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:95)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:290)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:274)
>         at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:81)
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:186)
>         at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:70)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:197)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:185)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:156)
>         at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete(DefaultPluginManager.java:544)
>         at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:479)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:334)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:378)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:351)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:337)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:229)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:123)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:209)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:267)
>         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:324)
>         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.io.FileNotFoundException: http://MY_MIRROR_SITE/maven2/repository/plexus/plexus-compiler-manager/1.5-SNAPSHOT/plexus-compiler-manager-1.5-SNAPSHOT.version.txt
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:798)
>         at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:71)
>         ... 35 more
> [DEBUG] Skipping disabled repository central
> Downloading: http://MY_MIRROR_SITE/maven2/repository/plexus/plexus-compiler-manager/1.5-SNAPSHOT/plexus-compiler-manager-1.5-SNAPSHOT.pom
> [WARNING] Unable to get resource from repository http://snapshots.maven.codehaus.org/maven2
> [WARNING] 
>   ***** Using defaults for missing POM plexus:plexus-compiler-manager:pom:1.5-SNAPSHOT
*****
> [DEBUG]   plexus:plexus-compiler-manager:jar:1.5-SNAPSHOT (selected for runtime)
> [DEBUG] Skipping disabled repository central
> Downloading: http://MY_MIRROR_SITE/maven2/repository/plexus/plexus-compiler-manager/1.5-SNAPSHOT/plexus-compiler-manager-1.5-SNAPSHOT.jar
> [WARNING] Unable to get resource from repository http://snapshots.maven.codehaus.org/maven2
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] Diagnosis: Error configuring plugin for execution of 'compiler:compile'.
> [INFO] ----------------------------------------------------------------------------
> [ERROR] Cause: 
> org.apache.maven.plugin.MojoExecutionException: Error configuring plugin for execution
of 'compiler:compile'.
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:339)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:378)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:351)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:337)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:229)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:123)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:209)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:267)
>         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:324)
>         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.PluginConfigurationException: Cannot resolve plugin
dependencies
>         at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete(DefaultPluginManager.java:579)
>         at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:479)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:334)
>         ... 15 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to
download the artifact from any repository
>   plexus:plexus-compiler-manager:1.5-SNAPSHOT:jar
> from the specified remote repositories:
>   http://repo1.maven.org/maven2, http://snapshots.maven.codehaus.org/maven2
> Path to dependency: 
>         1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0-beta-1-SNAPSHOT
>         2) plexus:plexus-compiler-manager:jar:1.5-SNAPSHOT
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:132)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:204)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:185)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:156)
>         at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete(DefaultPluginManager.java:544)
>         ... 17 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the
artifact from any repository
>         at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:233)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:115)
>         ... 22 more
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Tue Aug 09 10:39:58 CEST 2005
> [INFO] Final Memory: 2M/4M
> [INFO] ----------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message