You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matthew Adams <ma...@matthewadams.me> on 2011/04/29 01:40:52 UTC
How to include "." in generated Class-Path manifest?
I'm trying to use the maven-jar-plugin to create an executable jar that
includes not only the artifact's dependencies **but also** the current
working directory ("."). How can I do this easily?
Here's my plugin config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.springframework.batch.core.launch.support.CommandLineJobRunner</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
It would be nice if I could tell the plugin, "Hey, please include . in the
list of classpath entries!"
Thanks,
Matthew--
View this message in context: http://maven.40175.n5.nabble.com/How-to-include-in-generated-Class-Path-manifest-tp4357436p4357436.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to include "." in generated Class-Path manifest?
Posted by Matthew Adams <ma...@matthewadams.me>.
Nevermind. Answered my own question. Added
<manifestEntries>
<Class-Path>.</Class-Path>
</manifestEntries>
after <manifest> section. Worked nicely.
-matthew--
View this message in context: http://maven.40175.n5.nabble.com/How-to-include-in-generated-Class-Path-manifest-tp4357436p4357850.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org