Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-507

dependency:resolve-plugins and dependency:go-offline doesn't respect plugin dependencies from pom.xml

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8
    • Fix Version/s: None
    • Component/s: go-offline, resolve-plugins
    • Labels:
      None
    • Environment:
      linux, java version "1.8.0_60", maven 3.3.3

      Description

      When I override plugin dependecies in pom.xml then dependency:resolve-plugins and dependency:go-offline displays wrong dependencies.

      This example shows selenium version 2.21.0 instead of 2.47.1. The only way to check what is used is to delete local maven repo, execute the target and see what dependencies were downloaded.

      pom.xml

                          <plugin>
                              <groupId>org.codehaus.mojo</groupId>
                              <artifactId>selenium-maven-plugin</artifactId>
                              <version>2.3</version>
                              <dependencies>
                                  <dependency>
                                      <groupId>org.seleniumhq.selenium</groupId>
                                      <artifactId>selenium-server</artifactId>
                                      <version>2.47.1</version>
                                  </dependency>
                                  <dependency>
                                      <groupId>org.seleniumhq.selenium</groupId>
                                      <artifactId>selenium-remote-driver</artifactId>
                                      <version>2.47.1</version>
                                  </dependency>
                                  <dependency>
                                      <groupId>org.seleniumhq.selenium</groupId>
                                      <artifactId>selenium-api</artifactId>
                                      <version>2.47.1</version>
                                  </dependency>
                              </dependencies>
      

      mvn dependency:resolve-plugins

      [INFO] Plugin Resolved: selenium-maven-plugin-2.3.jar
      [INFO]     Plugin Dependency Resolved: gmaven-mojo-1.3.jar
      [INFO]     Plugin Dependency Resolved: gmaven-mojo-support-1.3.jar
      [INFO]     Plugin Dependency Resolved: groovy-all-1.7.5.jar
      [INFO]     Plugin Dependency Resolved: selenium-server-2.21.0.jar
      [INFO]     Plugin Dependency Resolved: selenium-remote-driver-2.21.0.jar
      [INFO]     Plugin Dependency Resolved: selenium-api-2.21.0.jar
      [INFO]     Plugin Dependency Resolved: selenium-remote-control-2.0rc2.jar
      [INFO]     Plugin Dependency Resolved: bcprov-jdk15-140.jar
      [INFO]     Plugin Dependency Resolved: guava-10.0.1.jar
      [INFO]     Plugin Dependency Resolved: commons-exec-1.1.jar
      [INFO]     Plugin Dependency Resolved: commons-logging-1.1.1.jar
      [INFO]     Plugin Dependency Resolved: selenium-java-client-driver-1.0.2.jar
      [INFO]     Plugin Dependency Resolved: servlet-api-2.4.jar
      [INFO]     Plugin Dependency Resolved: commons-lang-2.4.jar
      [INFO]     Plugin Dependency Resolved: commons-codec-1.5.jar
      [INFO]     Plugin Dependency Resolved: log4j-1.2.14.jar
      

      mvn dependency:go-offline

      [INFO] Plugin Resolved: selenium-maven-plugin-2.3.jar
      [INFO]     Plugin Dependency Resolved: gmaven-mojo-1.3.jar
      [INFO]     Plugin Dependency Resolved: gmaven-mojo-support-1.3.jar
      [INFO]     Plugin Dependency Resolved: groovy-all-1.7.5.jar
      [INFO]     Plugin Dependency Resolved: selenium-server-2.21.0.jar
      [INFO]     Plugin Dependency Resolved: selenium-remote-driver-2.21.0.jar
      [INFO]     Plugin Dependency Resolved: selenium-api-2.21.0.jar
      [INFO]     Plugin Dependency Resolved: selenium-remote-control-2.0rc2.jar
      [INFO]     Plugin Dependency Resolved: bcprov-jdk15-140.jar
      [INFO]     Plugin Dependency Resolved: guava-10.0.1.jar
      [INFO]     Plugin Dependency Resolved: commons-exec-1.1.jar
      [INFO]     Plugin Dependency Resolved: commons-logging-1.1.1.jar
      [INFO]     Plugin Dependency Resolved: selenium-java-client-driver-1.0.2.jar
      [INFO]     Plugin Dependency Resolved: servlet-api-2.4.jar
      [INFO]     Plugin Dependency Resolved: commons-lang-2.4.jar
      [INFO]     Plugin Dependency Resolved: commons-codec-1.5.jar
      [INFO]     Plugin Dependency Resolved: log4j-1.2.14.jar
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amra_san Marek Hudik
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: