Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15117

Duplicate plugin definition in forge intergration test pom

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0.CR1
    • 4.1.0.CR1
    • qa

      maven is complaining about a malformed pom:

      [WARNING] Some problems were encountered while building the effective model for org.jboss.tools.forge.tests:org.jboss.tools.forge.ui.bot.test:eclipse-test-plugin:4.1.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ line 52, column 13
      [WARNING] 
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING] 
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING] 
      

      https://github.com/jbosstools/jbosstools-integration-tests/blob/master/tests/org.jboss.tools.forge.ui.bot.test/pom.xml

      There are two definitions of the maven-dependency-plugin. They need to be merged.

       			<plugin>
      				<groupId>org.apache.maven.plugins</groupId>
      				<artifactId>maven-dependency-plugin</artifactId>
      				<executions>
      					<execution>
      						<id>install-as-7.1.1</id>
      						<phase>pre-integration-test</phase>
      						<goals>
      							<goal>unpack</goal>
      						</goals>
      						<configuration>
      							<artifactItems>
      								<artifactItem>
      										<groupId>org.jboss.as</groupId>
      										<artifactId>jboss-as-dist</artifactId>
      										<version>7.1.1.Final</version>
      										<type>zip</type>
      									</artifactItem>
      								</artifactItems>
      							<skip>${skipRequirements}</skip>
      						</configuration>
      					</execution>
      				</executions>
      			</plugin>
      
      			 <plugin>
                                      <groupId>org.apache.maven.plugins</groupId>
                                      <artifactId>maven-dependency-plugin</artifactId>
                                      <executions>
                                              <execution>
                                                      <id>forge-runtime-1.2.0</id>
                                                      <phase>pre-integration-test</phase>
                                                      <goals>
                                                              <goal>unpack</goal>
                                                      </goals>
                                                      <configuration>
                                                              <artifactItems>
                                                                      <artifactItem>
                                                                                      <groupId>org.jboss.forge</groupId>
                                                                                      <artifactId>forge-distribution</artifactId>
                                                                                      <version>1.2.0.Final</version>
                                                                                      <type>zip</type>
                                                                              </artifactItem>
                                                                      </artifactItems>
                                                              <skip>${skipRequirements}</skip>
                                                      </configuration>
                                              </execution>
                                      </executions>
                              </plugin>
      

            exd-mmalina Martin Malina
            exd-mmalina Martin Malina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: