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

deploy-file fails with the <files/> element containing spaces or line breaks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.7
    • None
    • deploy:deploy-file
    • None
    • all
    • Patch

    Description

      The deploy-file goal fails if we set a list of files with line breaks or spaces (for better readability since we have a long list of aside artifacts to deploy)

      The following sample fails :

      <configuration>
          <classifiers>
              classifier1, classifier2
              classifier3
          </classifiers>
          <files>
              ${basedir}/src/main/assets/artifact1.zip, ${basedir}/src/main/assets/artifact2.jar,
              ${basedir}/src/main/assets/artifact3.jar
          </files>
          <types>
              zip,
              jar, jar
          </types>
      </configuration>
      

      while the following works fine :

      <configuration>
          <classifiers>
              classifier1, classifier2
              classifier3
          </classifiers>
          <files>
              ${basedir}/src/main/assets/artifact1.zip,${basedir}/src/main/assets/artifact2.jar,${basedir}/src/main/assets/artifact3.jar
          </files>
          <types>
              zip,
              jar, jar
          </types>
      </configuration>
      

      As visible in these configuration samples, the elements <classifiers/> end <types/> are not affected and work fine even with spaces or line breaks in them.

      Attachments

        1. mvn-deploy.patch
          0.9 kB
          Lucas Lampietti

        Activity

          People

            Unassigned Unassigned
            lampietti Lucas Lampietti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: