Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-alpha-1
-
None
Description
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:
[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
Note: we may also want to fix the -X since the stacktrace is duplicated.
Attachments
Issue Links
- relates to
-
MNG-3314 offline build not running, when having SNAPSHOT dependencies
- Closed