Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-39

Assembly plugin to support 'directory' archive type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Add the ability for the assembly plugin to create an assembly on the native file system (i.e. a directory) that is not an archive (zip/jar/tar/etc).

      The assembly plugin supports configuration of a directory structure containing pom dependencies and other files based on the specified assembly xml definition. Presently this is used to create various types of archives.

      Using the assembly plugin is the only way I have found to create the correct directory structure for an application I am developing however I would like to do this without actually archiving the components (i.e. create the file structure but don't tar/zip/etc it). Building (and compressing) the archive takes a significant amount of time, and more often than not, we don't ever use the archive (except to extract the contents to the filesystem, run the application for testing, and never use it again), at least during development.

      I propose adding a 'directory' archive type that simply copies the xml specified files/dependencies to a specified path. This archive type might be specified in the assembly xml file, or alternatively, via a runtime parameter (profile/property) overriding the archive type(s) specified in the assembly xml, for use during development.

      I am currently working on a solution as this will be useful for our application that is built with m2, I will submit a patch as soon as I have something workable.

      Attachments

        1. DirectoryArchiver.java
          4 kB
          Daniel Krisher
        2. AssemblyMojo.java.diff
          0.4 kB
          Daniel Krisher
        3. AssemblyMojo.java.diff
          0.8 kB
          Daniel Krisher
        4. descriptor.mdo.diff
          0.5 kB
          Daniel Krisher
        5. MNG-735-maven-assembly-plugin.patch
          13 kB
          Daniel Krisher
        6. MNG-735-maven-assembly-plugin-30-sept-2005.patch
          13 kB
          Daniel Krisher

        Issue Links

          Activity

            People

              brett Brett Porter
              krisherd Daniel Krisher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: