Ivy
  1. Ivy
  2. IVY-982

Dependency Configuration Negation does not work

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0-RC2, 2.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:

      windows xp
      java 1.5 build 1.5.0_14-b03
      ant 1.7.0

      Description

      I am trying the define a dependency for all configurations in my module, except for the configuration named hibernate. So I defined the following dependency in my ivy.xml file:

      <dependency org="spring" name="spring-framework" rev="2.5.1" conf="*, !hibernate -> web"/>

      However, when resolving, I get the following error:

      [ivy:resolve] :: ivy-dependency-stubs#toolset#C2.0;MRC2.0: java.text.ParseException: Problem occured while parsing ivy file: Configuration '!hibernate' does not exist in module module: ivy-dependency-stubs#toolset#C2.0;MRC2.0 status=release publication=Fri Dec 05 10:50:34 CET 2008 configurations={compile=compile, test=test, ear=ear, hibernate=hibernate} artifacts={compile=[ivy-dependency-stubs#toolset#C2.0;MRC2.0!toolset.txt], hibernate=[ivy-dependency-stubs#toolset#C2.0;MRC2.0!toolset.txt], ear=[ivy-dependency-stubs#toolset#C2.0;MRC2.0!toolset.txt], test=[ivy-dependency-stubs#toolset#C2.0;MRC2.0!toolset.txt]} dependencies=[dependency: hibernate#hibernate#C2.0;3.2.6 {=[default]}, dependency: spring#spring-framework#C2.0;2.5.1 {=[web]}] in file:/R:/ext950_r_costa_INCEPTION_int_dn/devtools/oobs/var/cache/ivy-dependency-stubs/toolset/C2.0/ivy-MRC2.0.xml.original

      A similar problem has already been reported to the ivy-user group by somebody else using the IvyDE, so I suspect it's a Ivy-core problem?
      See: http://www.nabble.com/Dependency-Configuration-Negation-ts20129596.html#a20129596

      Attached is the stack trace:

      BUILD FAILED
      R:\ext950_r_costa_INCEPTION_int_dn\devtools\oobs\oobs-base.xml:124: The following error occurred while executing this line
      :
      R:\ext950_r_costa_INCEPTION_int_dn\devtools\oobs\oobs-base.xml:125: impossible to resolve dependencies:
      resolve failed - see output for details
      at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:541)
      at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      at org.apache.tools.ant.Main.runBuild(Main.java:698)
      at org.apache.tools.ant.Main.startAnt(Main.java:199)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
      Caused by: R:\ext950_r_costa_INCEPTION_int_dn\devtools\oobs\oobs-base.xml:125: impossible to resolve dependencies:
      resolve failed - see output for details
      at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:315)
      at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
      ... 16 more
      Caused by: resolve failed - see output for details
      at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:241)
      ... 31 more
      — Nested Exception —
      R:\ext950_r_costa_INCEPTION_int_dn\devtools\oobs\oobs-base.xml:125: impossible to resolve dependencies:
      resolve failed - see output for details
      at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:315)
      at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      at org.apache.tools.ant.Main.runBuild(Main.java:698)
      at org.apache.tools.ant.Main.startAnt(Main.java:199)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
      Caused by: resolve failed - see output for details
      at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:241)
      ... 31 more
      — Nested Exception —
      resolve failed - see output for details
      at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:241)
      at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      at org.apache.tools.ant.Main.runBuild(Main.java:698)
      at org.apache.tools.ant.Main.startAnt(Main.java:199)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Marc De Boeck
          • Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:

              Development