You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Siegmann Daniel, NY" <Da...@fja-us.com> on 2007/08/23 22:48:12 UTC

Jar with dependencies help

I am trying to assemble a modified version of the jar-with-dependencies.
Limiting it to just specific dependencies was easy enough. However,
there are a couple of other things I need to do, and I'm not sure how to
set up the descriptor.

1. I want to change the final name of the assembly. I don't see an
option for this in the descriptor.

2. What I *really* want is to replace the normal jar (produced by
jar:jar in the package phase) with this combined jar. I will never need
the normal jar.

3. I want to do the same thing for the sources of this project and
selected dependencies - I want to replace the jar produced by
source:jar. I don't see a way to pull in the source jars for the
dependencies though.

Any help would be much appreciated. I've included my current descriptor
below just in case that helps.

<assembly>
	<id>complete</id>
	<formats>
		<format>jar</format>
	</formats>
	<includeBaseDirectory>false</includeBaseDirectory>
	<dependencySets>
		<dependencySet>
			<outputDirectory></outputDirectory>
			<outputFileNameMapping></outputFileNameMapping>
			<unpack>true</unpack>
			<scope>runtime</scope>
			<includes>
	
<include>com.chubb.pm:chubb-common-pm-base</include>
	
<include>com.chubb.pm:chubb-common-pm</include>
	
<include>com.chubb.pm:chubb-yacht-gen</include>
			</includes>
		</dependencySet>
	</dependencySets>
	<fileSets>
		<fileSet>
			<directory>target/classes</directory>
			<outputDirectory></outputDirectory>
		</fileSet>
	</fileSets>
</assembly>

--
Daniel Siegmann
FJA-US, Inc.
512 7th Ave. 15th Flr. New York, NY 10018
(212) 840-2618 x139

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org