You'll need the manifest file to put "lib/" in front of all of its
classpath declarations.
<?xml version="1.0"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>groud.id</groupId>
<artifactId>artefactid</artifactId>
<name> artefactid </name>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>
main.classname.here
</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>lib</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
-----Original Message-----
From: Erik Drolshammer [mailto:[EMAIL PROTECTED]
Sent: 14 December 2007 07:11
To: Maven Users List
Subject: Re: [assembly] add all dependency jars to lib folder in a "bin"
assembly
Richard Chamberlain wrote:
> Hi.
>
> I use the following:
>
> <dependencySets>
> <dependencySet>
> <outputDirectory>/lib</outputDirectory>
> <unpack>false</unpack>
> <scope>runtime</scope>
> </dependencySet>
> </dependencySets>
>
> It puts all the dependencies into lib.
Any idea how to add the contents of lib to classpath?
(I have an executable jar file and when I add the dependencies to the
lib folder the main class cannot be found.)
--
Regards
Erik Drolshammer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]