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

copy fails on artifacts previously downloaded via get from repo specified via CLI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.1
    • None
    • copy, get
    • None

    Description

      dependency:copy fails to copy artifacts that were previously downloaded via dependency:get from a remote repository that has been specified on the command line. The error message is:

      The POM for artifact is missing, no dependency information available

      and later on

      Failed to execute goal dependency:copy (default-cli) on project standalone-pom: Unable to find/resolve artifact. Failure to find artifact in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

      But: dependency:get actually succeeded and the artifact and its POM are in the local repo.

      Reproducing shell snippet
      mvn -version
      mvn org.apache.maven.plugins:maven-dependency-plugin:3.0.1:get \
          org.apache.maven.plugins:maven-dependency-plugin:3.0.1:copy \
          -DremoteRepositories=http://packages.confluent.io/maven/ \
          -Dartifact=io.confluent:kafka-schema-registry:3.1.1
      ls -la ~/.m2/repository/io/confluent/kafka-schema-registry/3.1.1
      

      I've attached the output of the above test snippets.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tom@bibbu.net Tom Wieczorek
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: