I want to add the jar dependencies into the jar manifest classpath entry for
the jar-with-dependencies assembly plugin and I am having no luck:

assembly xml:
<assembly>
  <id>jar-with-dependencies</id>
  <formats>
    <format>jar</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <fileSets>
    <fileSet>
      <directory>core-jar/target/classes</directory>
      <outputDirectory>/</outputDirectory>
    </fileSet>
  </fileSets>
  <dependencySets>
    <dependencySet>
      <outputDirectory>/</outputDirectory>
      *<unpack>false</unpack>*
      <scope>runtime</scope>
    </dependencySet>
  </dependencySets>
</assembly>


plugin declaration:

            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2-beta-2</version>
                <configuration>
                    <outputDirectory>${stage.dir}/${label}</outputDirectory>
                    <descriptors>

<descriptor>src/assemble/assembly-jar-with-dependencies.xml</descriptor>
                        <descriptor>src/assemble/assembly.xml</descriptor>
                    </descriptors>
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                            <mainClass>${mainClass.name}</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>


The original jar contains the correct manifest I want:

Main-Class: AscendPublisher-Core-1.0-SNAPSHOT
Class-Path: ./commons-collections-3.2.jar ./cstplus-2.1.3.jar ./gmd-co
 mmon-27.4.0.jar ./ri92_GMDClient-27.4.0.jar ./jt400-4.0.jar ./jms-1.4
 .0.jar ./jdom-1.0.jar ./log4j-1.2.15.jar ./mail-1.4.jar ./activation-
 1.1.jar ./jmxtools-1.2.1.jar ./jmxri-1.2.1.jar ./tibjms-4.4.3.jar ./f
 xg-security-client-1.0.3.jar ./commons-dbcp-1.2.2.jar ./commons-pool-
 1.3.jar ./spring-1.2.8.jar ./commons-lang-2.4.jar ./slf4j-api-1.5.6.j
 ar ./slf4j-log4j12-1.5.6.jar



but the assembly does not:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: 733639
Build-Jdk: 1.5.0_17
Main-Class: com.fedex.ground.asc.AscendPublisher





---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---

Reply via email to