Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Tomcat 7 getting incomplete webapp

Tomcat's "Serve modules without publishing" is currently not compatible with war overlays. 
Overlay contents are dynamically resolved (depending on inclusion/exclusion patterns), so making Tomcat point at a static folder (via extraResourcePaths) just won't work. 
If your use case doesn't require that kind of dynamic nature, you can try adding target\m2e-wtp\overlays\xxx\ as webResources in a maven-war-plugin configuration used by m2e (via a profile)

On Wed, Nov 30, 2011 at 4:44 PM, Sebastien Tardif <SebTardif@xxxxxx> wrote:

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>


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users




--
"Have you tried turning it off and on again" - The IT Crowd

Back to the top