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

copy goal example should use install phase instead of package phase

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: copy
    • Labels:
      None
    • Environment:
      any

      Description

      The example usage shows:

      <phase>package</phase>
      <goals>
      <goal>copy</goal>
      </goals>

      This results in the artifact being copied from the repository before it is refreshed with the current working copy. Switching the phase to install resolved the issue.

      My apologies if this is as intended, but I can't think of a valid reason to every copy the outdated version during a package/install, so seems the copy goal should always come after packaging.

      Also their is an entry on the FAQ page that cites an example that is not shown and not in the page source..

        Attachments

          Activity

            People

            • Assignee:
              danttran Dan Tran
              Reporter:
              afnid D A
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: