Java – add the classpath to the terminal running in the Maven integration test
•
Java
I'm setting up integration testing for a maven project that generates war files (as shown here) http://docs.codehaus.org/display/JETTY/Maven +Jetty+Plugin/.) However, my war file needs a bunch of files on the classpath Properties file, I don't want to be bound in the war
Is there any way (preferably through plug-in configuration) to add folders to the classpath used by jetty?
I searched Google and found http://markmail.org/message/awtqrgxxttra3uxx But as far as I know, it doesn't really work at all can't find. Properties file
Solution
You should be able to use the webappconfig configuration element (sample obtained from this thread):
<webAppConfig> <contextPath>/nportal</contextPath> <!-- All I want to do here is add in the /etc/jetty/classes for runtime files. For some reason I have to also add back in the /target/classes directory --> <extraClasspath>${basedir}/target/classes/;${basedir}/etc/jetty/classes/</extraClasspath> </webAppConfig>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码