Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6019

maven-dependency-plugin downloads released sources JARs when -U is specified

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.3.9
    • Fix Version/s: None
    • Component/s: Plugins and Lifecycle
    • Labels:
      None

      Description

      We have a Nexus repo with snapshots and releases. When we run mvn install in a directory with dependencies in the pom.xml, specifying -U, it downloads SNAPSHOTs of binary JARs (correct), new versions of released JARs (correct), and all sources JARs, whether SNAPSHOT (correct) or binary (incorrect).

      For example:

      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/org/apache/axis/axis-saaj/1.4/axis-saaj-1.4-sources.jar
      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/org/apache/tomcat/tomcat-i18n-fr/7.0.39/tomcat-i18n-fr-7.0.39-sources.jar
      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/org/jyaml/jyaml/1.3/jyaml-1.3-sources.jar
      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/net/sf/flatpack/flatpack/3.2.0/flatpack-3.2.0-sources.jar
      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/com/sun/webservices-extra-api/2.0.1/webservices-extra-api-2.0.1-sources.jar
      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/com/pingidentity/opentoken/opentoken-adapter/2.3/opentoken-adapter-2.3-sources.jar
      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/org/grlea/log/adapters/simple-log-sl4j/1.7/simple-log-sl4j-1.7-sources.pom
      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/gnu-regexp/gnu-regexp/1.1.4/gnu-regexp-1.1.4-sources.jar
      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7-sources.jar
      [INFO] Downloading: <our Nexus server>/nexus/content/groups/qbo/xstream/xstream/1.3/xstream-1.3-sources.jar
      etc.

      This continual redownloading of sources JARs bogs down our builds (we have a lot of dependencies).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jim_showalter Jim Showalter
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: