In the following configuration, where ${stumps.home} is a defined maven property in the pom.xml:
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.0.RC0</version>
<configuration>
<webApp>
<contextPath combine.children="override">/</contextPath> <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
<resourcesAsCSV combine.children="override">target/jettyFilteredResources,src/main/webapp,${stumps.home}/site/src/webapp,${stumps.home}/user/src/webapp,${stumps.home}/modules/src/webapp</resourcesAsCSV>
</baseResource>
</webApp>
<jettyXml combine.children="override">${stumps.home}/poms/basic-web-project/jetty.xml</jettyXml>
<webAppSourceDirectory combine.children="override">${project.basedir}/src/main/webapp</webAppSourceDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<downloadSources>true</downloadSources>
</configuration>
</plugin>
This validates any path however fails to load it in the running jetty server in tested versions 9.3.3.v20150827, 9.4.0.RC3.
The fact that it runs fine in 9.2.0.RC0 , is sufficient grounds to believe this is a bug in the more recent versions mentioned above.
Additionally I have tried the following variant also. the documentation http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html section "Configuring your Webapp" mentions resourceBases to be the alternative for multiple resources however baseResource also does a good job. Maybe additionally the docs can explai nthe difference ?!:
<resourceBases>
<resourceBase>target/jettyFilteredResources</resourceBase>
<resourceBase>src/main/webapp</resourceBase>
<resourceBase>${stumps.home}/site/src/webapp</resourceBase>
<resourceBase>${stumps.home}/user/src/webapp</resourceBase>
<resourceBase>${stumps.home}/modules/src/webapp</resourceBase>
<resourceBase>${stumps.home}/modules-etl/src/webapp</resourceBase>
<resourceBase>${stumps.home}/modules-configs/src/webapp</resourceBase>
</resourceBases>
[Updated on: Wed, 15 March 2017 13:18] by Moderator