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

copy-dependencies + copyPom + useRepositoryLayout skips existing artifacts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.10
    • None
    • copy-dependencies
    • None
    • Debian Jessie

    Description

      copy-dependencies using copyPom with useRepositoryLayout will skip copying poms to artifact directories that already exist. This doesn't seem to happen without useRepositoryLayout

      Here is a link to a bash script demonstrating the bug. It clones apache commons-math, and then copies its dependencies with useRepositoryLayout. It then goes back and does it with copyPom=true, but the pom files do not get copied.

      This can be overcome by setting -DoverWriteReleases=true

      https://gist.github.com/olemma/2a344a5748befcb7acce

      Attachments

        Activity

          People

            Unassigned Unassigned
            awknaust Alexander Knaust
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: