You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Benedict (JIRA)" <ji...@codehaus.org> on 2014/07/02 15:44:58 UTC
[jira] (MNG-2017) Dependencies with scope system and version range
make the build fail
[ https://jira.codehaus.org/browse/MNG-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated MNG-2017:
-------------------------------
Fix Version/s: (was: Issues to be reviewed for 3.x)
> Dependencies with scope system and version range make the build fail
> --------------------------------------------------------------------
>
> Key: MNG-2017
> URL: https://jira.codehaus.org/browse/MNG-2017
> Project: Maven
> Issue Type: Bug
> Components: Dependencies
> Affects 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 was sent by Atlassian JIRA
(v6.1.6#6162)