I’m using Maven with overlay. I try to get
Tomcat 7 run without having to copy all the files
when I publish. The option is called "Serve modules
without publishing".
You can see below that Tomcat end-up to
receive two useful folders:
-
docBase="C:\OPS_MAVENIZED_2\src\main\webapp"
-
extraResourcePaths="C:\OPS_MAVENIZED_2\target\m2e-wtp\web-resources"
However, the overlay are not in one of them,
but they are under
“C:\OPS_MAVENIZED_2\target\m2e-wtp\overlays”.
Any workaround?
The expectation is that extraResourcePaths
end-up having all the relevant paths.
A slow workaround would be that m2e copy the
overlay in
C:\OPS_MAVENIZED_2\target\m2e-wtp\web-resources.
<?xml version="1.0" encoding="UTF-8"?>
<Context
docBase="C:\OPS_MAVENIZED_2\src\main\webapp"
path="/coldfusion.base" reloadable="true"
source="org.eclipse.jst.jee.server:coldfusion.base"><Resources
className="org.eclipse.jst.server.tomcat.loader.WtpDirContext"
extraResourcePaths="C:\OPS_MAVENIZED_2\target\m2e-wtp\web-resources"
virtualClasspath=""/><Loader
className="org.eclipse.jst.server.tomcat.loader.WtpWebappLoader"
useSystemClassLoaderAsParent="false"
virtualClasspath=""/><JarScanner
scanAllDirectories="true"/></Context>