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

Cannot add two dependencies that differ only in the 'type' attribute to a new Maven project's POM.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.12.3.Final
    • 2.12.2.Final
    • Addon Development
    • None

    Description

      The method "areEquivalent(Dependency, Dependency)" of org.jboss.forge.addon.dependencies.util.Dependencies does not check to see if the two dependencies have different packaging types or scopes.

      For example, I cannot add both of the following dependencies:
      <dependency>
      <groupId>org.jboss.errai</groupId>
      <artifactId>errai-cdi-client</artifactId>
      <type>jar</type>
      <scope>provided</scope>
      </dependency>

      <dependency>
      <groupId>org.jboss.errai</groupId>
      <artifactId>errai-cdi-client</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
      </dependency>

      Attachments

        Activity

          People

            rhn-support-ggastald George Gastaldi
            ddadlani Divya Dadlani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: