使用
webAppConfig配置元素(以下示例来自此线程)应该可以实现:
<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>


