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

deploy-file replaces main artifact of a project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.2
    • 3.0.0-M1
    • deploy:deploy-file
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: