Hi,

My project is built around Mozilla Rhino, but and I'm transitioning to maven for the build system. When my project was using ant, I had a task that would download dependencies to the local lib/ directory in the project. I then had a shell script that would run the project, including the rhino library and other libraries on the classpath by refering to its local path. So something like this:

java -cp lib/java/js.jar:lib/java/commons-cli.jar:lib/java/serializer.jar:lib/java/xalan.jar:lib/java/xercesImpl.jar:lib/java/xml-apis.jar org.mozilla.javascript.tools.shell.Main -debug $*

With maven, however, the libraries are now kept in the location of the maven repository, several directories deep, based on information kept in the pom.xml file. I'd like to know, is there a maven solution for extracting a particular classpath from a maven file, such that the classpath can be used from a shell script? If not, is there at least a reliable way of determining the location of the maven repository on Windows and Unix platforms?

I'd appreciate any guidance anyone can provide. Thanks,

Jake

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to