Hi, I have a standalone application that needs to be run on a production machine. I'm using the maven assembly plugin to create a zip file that contains all of the dependencies. So far so good, however, I need a script that can be invoked on the production machine (from a cron job).
I can write this script myself, but I'll need to ensure that all the dependency jars are included in the classpath. I'm hoping that the assembly plugin or some other maven feature will help me achieve this last crucial phase but I can't find any documentation or a single example. I have persuaded Maven to create an executable jar of my project and it appears to have put all the dependencies in the Manifest file. When I invoke it using "java -jar myExecJar.jar" it does appear to find the dependent jars that are in the same "lib" directory as myExecJar.jar (I have no idea why). My problem is that I need to specify an additional path to my classpath that contains some properties files for the target platform. If I use the -classpath, I can no-longer invoke my executable jar. I've tried just setting CLASSPATH but this has no effect. Can anyone help please? Thanks, Alex -- View this message in context: http://www.nabble.com/Packaging-an-application-that-can-be-run-tp20016263p20016263.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
