[ http://jira.codehaus.org/browse/MNG-2017?page=all ]
John Casey updated MNG-2017: ---------------------------- Fix Version: (was: 2.0.5) > Dependencies with scope system and version range make the build fail > -------------------------------------------------------------------- > > Key: MNG-2017 > URL: http://jira.codehaus.org/browse/MNG-2017 > Project: Maven 2 > Type: Bug > Versions: 2.0.2 > Reporter: Carlos Sanchez > Priority: Minor > > > Same as MNG-1363 but this time for direct dependencies, it shouldn't try to > resolve versions for system scope deps > <dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <scope>system</scope> > <version>[1.4,)</version> > <systemPath>${java.home}/../lib/tools.jar</systemPath> > </dependency> > No versions are present in the repository for the artifact with a range [1.4,) > com.sun:tools:jar:null > from the specified remote repositories: > central (http://test.maven.codehaus.org/maven2) > [INFO] > ---------------------------------------------------------------------------- > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: No versions are > present in the repository for the artifact with a range [1.4,) > com.sun:tools:jar:null > from the specified remote repositories: > central (http://test.maven.codehaus.org/maven2) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:274) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > 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.artifact.versioning.OverConstrainedVersionException: No > versions are present in the repository for the artifact with a range [1.4,) > com.sun:tools:jar:null > from the specified remote repositories: > central (http://test.maven.codehaus.org/maven2) > at > org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:265) > at > org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:67) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:223) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182) > at > org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1120) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:369) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) > ... 16 more -- 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