maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Issue Comment Edited: (MNG-2695) -o makes build fail for snapshot plugins
Date Wed, 22 Oct 2008 17:31:19 GMT

    [ http://jira.codehaus.org/browse/MNG-2695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=151532#action_151532
] 

bentmann edited comment on MNG-2695 at 10/22/08 12:30 PM:
-------------------------------------------------------------------

The existing IT has been updated to produce the issue, see MNG-3314 for a proposed patch.

      was (Author: bentmann):
    The existing IT has been updated to produce the issue.
  
> -o makes build fail for snapshot plugins
> ----------------------------------------
>
>                 Key: MNG-2695
>                 URL: http://jira.codehaus.org/browse/MNG-2695
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0-alpha-1
>            Reporter: Kenney Westerhof
>            Assignee: John Casey
>             Fix For: 2.0.10, 2.1.0-M1
>
>
> I've set the maven-eclipse-plugin version to 2.3-SNAPSHOT in my root pom.
> When I run without -o, the build works fine. All 1000000 non-deployed snapshot artifacts
are resolved 1000000 times from all of my 100000 remote repo's so the build takes ages.
> After a succesful build, I run with -o and the build fails:
> {noformat}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-eclipse-plugin
> Version: 2.3-SNAPSHOT
> Reason: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
> NOTE: Maven is executing in offline mode. Any artifacts not already in your local
> repository will be inaccessible.
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin
'org.apache.maven.plugins:maven-eclipse-plugin': POM 'org.apache.maven.
> plugins:maven-eclipse-plugin' not found in repository: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1269)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
>         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:746)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:394)
>         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.InvalidPluginException: Unable to build project for
plugin 'org.apache.maven.plugins:maven-eclipse-plugin': POM 'org.apache.mav
> en.plugins:maven-eclipse-plugin' not found in repository: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
>         at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:266)
>         at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:184)
>         at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:164)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
>         ... 15 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.maven.plugins:maven-eclipse-plugin'
not found in repository: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:522)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:227)
>         at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:250)
>         ... 18 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:140)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:65)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:476)
>         ... 20 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Mon Dec 11 12:11:50 CET 2006
> [INFO] Final Memory: 6M/15M
> [INFO] ------------------------------------------------------------------------
> FATAL ERROR: Unable to configure the Maven application
> Error stacktrace:
> org.apache.maven.reactor.MavenExecutionException: Unable to build project for plugin
'org.apache.maven.plugins:maven-eclipse-plugin': POM 'org.apache.maven.plugin
> s:maven-eclipse-plugin' not found in repository: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:194)
>         at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:746)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:394)
>         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.lifecycle.LifecycleExecutionException: Unable to build project
for plugin 'org.apache.maven.plugins:maven-eclipse-plugin': POM 'org.ap
> ache.maven.plugins:maven-eclipse-plugin' not found in repository: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1269)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
>         ... 10 more
> Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build project for
plugin 'org.apache.maven.plugins:maven-eclipse-plugin': POM 'org.apache.mav
> en.plugins:maven-eclipse-plugin' not found in repository: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
>         at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:266)
>         at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:184)
>         at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:164)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
>         ... 15 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.maven.plugins:maven-eclipse-plugin'
not found in repository: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:522)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:227)
>         at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:250)
>         ... 18 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: System is offline.
>   org.apache.maven.plugins:maven-eclipse-plugin:pom:2.3-SNAPSHOT
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:140)
>         at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:65)
>         at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:476)
>         ... 20 more
> {noformat}
> Note: we may also want to fix the -X since the stacktrace is duplicated.

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

        

Mime
View raw message