SingleShot wrote:
>
> Is it possible to add a directory to the classpath of a Maven-generated
> Manifest?
>
In theory, yes:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.foo.mainclass</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>lib</classpathPrefix>
</manifest>
<manifestEntries>
<Class-Path>config/</Class-Path>
</manifestEntries>
</archive>
</configuration>
</plugin>
But that doesn't work for me, see: http://jira.codehaus.org/browse/MJAR-60.
Another limitation (in java, not in maven) is that you can't access higher
level directories, so something like <Class-Path>../config/</Class-Path>
won't work.
--
View this message in context:
http://www.nabble.com/Add-Directory-to-Jar-Manifest-Classpath-tf2504507.html#a6987252
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]