Maven 1.x Distribution Plugin
  1. Maven 1.x Distribution Plugin
  2. MPDIST-7

Use shorter path for assembling distributions and clean up afterwards.

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      All, but particularly Windows
    • Number of attachments :
      3

      Description

      As of maven-dist-plugin1.3 (maven-1.0-rc1), the plugin creates an excessively long intermediate path when assembling the files prior to creating the archives.

      This has been causing problems for some of our builds because we have fairly long artifactIds and deep package structures. This causes bad behavior under windows when the absolute path is deeper than 255 characters.

      I would propose the following:

      • set the default plugin.properties as follows:
      • maven.dist.bin.assembly.dir=$ {maven.dist.dir}/bin
        * maven.dist.src.assembly.dir=${maven.dist.dir}

        /src

      • Remove the following plugin.properties (unused):
      • maven.dist.assembly.dir
      • maven.dist.bin.archive.dir
      • maven.dist.src.archive.dir
      • Modify plugin.jelly to
      • replace maven.dist.bin.archive.dir with maven.dist.bin.assembly.dir
      • replace maven.dist.src.archive.dir with maven.dist.src.assembly.dir
      • Use the 'prefix' directive on <ant:zipfileset> and <ant:tarfileset> when creating archives
      • delete the assembly directories after building the archives
      • delete distributions.tar.gz after deploy
      1. plugin.jelly
        8 kB
        Bruce Chenoweth
      2. plugin.properties
        0.4 kB
        Bruce Chenoweth
      3. properties.xml
        1 kB
        Bruce Chenoweth

        Activity

        Hide
        Bruce Chenoweth added a comment -

        Here is an implementation of my suggestions

        Show
        Bruce Chenoweth added a comment - Here is an implementation of my suggestions
        Hide
        Bruce Chenoweth added a comment -

        corresponding properties.xml documentation

        Show
        Bruce Chenoweth added a comment - corresponding properties.xml documentation

          People

          • Assignee:
            Unassigned
            Reporter:
            Bruce Chenoweth
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: