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

DependencyInstaller duplicates the version already set in the dependencyManagement section

    XMLWordPrintable

    Details

      Description

      Eg:

      <?xml version="1.0" encoding="UTF-8"?>
      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <modelVersion>4.0.0</modelVersion>
        <groupId>simple</groupId>
        <artifactId>simple</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <dependencyManagement>
          <dependencies>
            <dependency>
              <groupId>org.jboss.forge.furnace</groupId>
              <artifactId>container-cdi</artifactId>
              <version>2.0.0.Alpha7</version>
              <classifier>forge-addon</classifier>
              <scope>provided</scope>
            </dependency>
            <dependency>
              <groupId>org.jboss.forge.addon</groupId>
              <artifactId>ui</artifactId>
              <version>2.0.0-SNAPSHOT</version>
              <classifier>forge-addon</classifier>
            </dependency>
          </dependencies>
        </dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>org.jboss.forge.furnace</groupId>
            <artifactId>container-cdi</artifactId>
            <version>2.0.0.Alpha7</version>
            <classifier>forge-addon</classifier>
            <scope>provided</scope>
          </dependency>
          <dependency>
            <groupId>org.jboss.forge.addon</groupId>
            <artifactId>ui</artifactId>
            <version>2.0.0-SNAPSHOT</version>
            <classifier>forge-addon</classifier>
          </dependency>
        </dependencies>
        <build>
          <plugins>
            <plugin>
              <artifactId>maven-jar-plugin</artifactId>
              <executions>
                <execution>
                  <id>create-forge-addon</id>
                  <phase>package</phase>
                  <goals>
                    <goal>jar</goal>
                  </goals>
                  <configuration>
                    <classifier>forge-addon</classifier>
                  </configuration>
                </execution>
              </executions>
            </plugin>
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>3.1</version>
              <configuration>
                <source>1.6</source>
                <target>1.6</target>
                <encoding>UTF-8</encoding>
              </configuration>
            </plugin>
          </plugins>
        </build>
      </project>
      
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lincolnthree Lincoln Baxter III
                Reporter:
                gastaldi George Gastaldi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: