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

deploy:deploy will try to deploy a nonexistent attached file (and succeed, depending on the repository)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.8.2
    • None
    • deploy:deploy
    • None
    • Patch

    Description

      If a nonexistent file is attached to a project using build-helper-maven-plugin, deploy:deploy will attempt to deploy it (and, depending on the repository manager, possibly create a zero-length artifact in the process).

      Detail: We have a legacy build process that generates RPMs using .spec files and command-line tools, then attaches the artifacts to the build using build-helper-maven-plugin. Occasionally the .spec file version gets out of date; the RPM is still generated successfully, so build-helper-maven-plugin attaches what it thinks will be the path to the generated file (but isn't, because the version is wrong). When maven-deploy-plugin:deploy runs, it tries to upload the nonexistent file to Nexus, which creates a zero-length artifact. (This eventually causes Nexus's yum plugin to fail, as the underlying createrepo process can't handle the zero-length RPM file is invalid.)

      The patch will no longer deploy the nonexistent file, printing a warning when this happens instead.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rfscholte Robert Scholte
            peterj Peter Janes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment