eclipse-jetty-plugin
eclipse-jetty-plugin copied to clipboard
Jetty can't scan the web-fragment.xml inside de target/classes/META-INF folder
The target/classes folder for web-fragment maven modules are added to classpath, however Jetty does not scan the web-fragment.xml files. I'm using Jetty-8.1.14, Java 1.7, Servlet API 3.0.
Project structure:
parent (pom project)
|_ child1 (jar web-fragment dependency)
|_ child2 (jar dependency)
|_ child3 (war view project)
Log for console after start Jetty Plugin:
Classpath:
/.../.m2/repository/.../abc.jar
/.../.m2/repository/.../def.jar
/.../.m2/repository/.../ghi.jar
/.../.m2/repository/.../jkl.jar
/.../child1/target/classes
/.../child2/target/classes
I try to add this configuration, but no results.
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Call name="setAttribute">
<Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
<Arg>.*/[^/]*\.jar$|.*/classes/.*</Arg>
</Call>
<Call name="setAttribute">
<Arg>org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern</Arg>
<Arg>.*/[^/]*\.jar$|.*/classes/.*</Arg>
</Call>
</Configure>