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

Assembled jar includes artifact names in path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.2
    • 2.2-beta-2
    • None
    • None

    Description

      This issue does not occur in 2.1 and began occurring in 2.2-SNAPSHOT (roughly) a couple months ago.
      After assembling a jar, the path for each of the included files begins with what seems to be ${artifactId}-${version}.${packaging}
      This includes files from dependent jars and files from sub-modules - all files.
      The plugin is configured in the POM as follows:
      <build>
      <plugins>
      <plugin>
      <artifactId>maven-assembly-plugin</artifactId>
      <executions>
      <execution>
      <id>1</id>
      <phase>package</phase>
      <goals>
      <goal>attached</goal>
      </goals>
      </execution>
      </executions>
      <version>2.2-SNAPSHOT</version>
      <configuration>
      <descriptor>assembly.xml</descriptor>
      </configuration>
      </plugin>
      </plugins>
      </build>
      The entire assembly.xml is as follows:
      <assembly>
      <id>dependencies</id>
      <formats>
      <format>jar</format>
      </formats>
      <includeBaseDirectory>false</includeBaseDirectory>
      <dependencySets>
      <dependencySet>
      <outputDirectory>/</outputDirectory>
      <unpack>true</unpack>
      <scope>runtime</scope>
      </dependencySet>
      </dependencySets>
      </assembly>

      Attachments

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              jkomorek Jonathan Komorek
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: