Uploaded image for project: 'Maven Deploy Plugin'
  1. Maven Deploy Plugin
  2. MDEPLOY-213

deploy-file replaces main artifact of a project

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.2
    • Fix Version/s: 3.0.0-M1
    • Component/s: deploy:deploy-file
    • Labels:
      None
    • Flags:
      Important

      Description

      When using the deploy-file goal in a project (not from the command-line), the specified file will replace the artifact of the current project, which may later lead to project artifact corruption, especially in a multi-module build. Instead the deploy-file goal should not touch the project artifact, or it should be conditionally set.

      The offending line should be removed from DeployFileMojo

      //project.setArtifact( artifact );
      

        Attachments

          Activity

            People

            • Assignee:
              gboue Guillaume Boué
              Reporter:
              brianoliver Brian Oliver
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: