Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1661

project-add-dependency ignore new scope

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.0.Final
    • 2.1.1.Final
    • Projects
    • None

      When you have a bom defined in depmgm that include the dep you're trying to add as a direct dependency, you will get the question: This is a managed resource, would you like to include this version?

      When you attempt to add a reference to a managed dependency in a given scope, the new scope is ignored if you say yes to not override the managed version.

      Take Arquillian as an example, arquillian-bom is defined in depmgm.

      project-add-dependencies org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain::test:pom

      Do you like to use managed version? Y

      Results in:

      org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:::pom

      Resolver is now in Compile scope. Wanted Test scope.

              aslak@redhat.com Aslak Knutsen
              aslak@redhat.com Aslak Knutsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: