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

leading period ('.') added to directory names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.2.1
    • None
    • None
    • Windows XP, SP3
      Maven 2.2.1
      Maven Assembly 2.2

    Description

      $ cat dist.xml
      <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">

      <id>dist</id>
      <formats>
      <format>zip</format>
      </formats>

      <fileSets>
      <fileSet>
      <directory>${project.basedir}/../paper</directory>
      </fileSet>
      <fileSet>
      <directory>${project.basedir}/../boots</directory>
      </fileSet>
      </fileSets>

      </assembly>

      $ mvn clean assembly:assembly
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building oracle-sql-assembly
      [INFO] task-segment: [clean]
      [INFO] ------------------------------------------------------------------------
      [INFO] [clean:clean

      {execution: default-clean}

      ]
      [INFO] Deleting directory F:\test-assembly\target
      [INFO] ------------------------------------------------------------------------
      [INFO] Building oracle-sql-assembly
      [INFO] task-segment: [assembly:assembly] (aggregator-style)
      [INFO] ------------------------------------------------------------------------
      [INFO] Preparing assembly:assembly
      [INFO] ------------------------------------------------------------------------
      [INFO] Building oracle-sql-assembly
      [INFO] ------------------------------------------------------------------------
      [INFO] [site:attach-descriptor

      {execution: default-attach-descriptor}

      ]
      [INFO] [assembly:assembly

      {execution: default-cli}

      ]
      [INFO] Reading assembly descriptor: src/main/assembly/dist.xml
      [INFO] Building zip: F:\test-assembly\target\test-assembly-3.1-SNAPSHOT-dist.zip
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2 seconds
      [INFO] Finished at: Mon Oct 11 15:34:37 EDT 2010
      [INFO] Final Memory: 18M/45M
      [INFO] ------------------------------------------------------------------------
      $ unzip -l target/test-assembly-dist.zip
      Archive: target/test-assembly-dist.zip
      Length Date Time Name
      --------- ---------- ----- ----
      0 10-11-2010 15:34 test-assembly/
      0 10-11-2010 15:27 test-assembly/.paper/
      0 10-11-2010 15:27 test-assembly/.paper/random.txt
      0 10-11-2010 15:27 test-assembly/.boots/
      0 10-11-2010 15:27 test-assembly/.boots/boots.txt
      --------- -------
      0 5 files

      Do you notice the '.paper' and '.boots' directories? It should just be 'paper' and 'boots', if I'm understanding it correctly.

      I tried other versions of the plugin (e.g., beta-4), I tried removing "${project.basedir}/".

      No go.

      P.S. If someone points me in the right direction, like a class name, I'll write a test case.

      Attachments

        1. pom.xml
          0.7 kB
        2. dist.xml
          1 kB

        Activity

          People

            jdcasey John Dennis Casey
            the_alchemist The Alchemist
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: