Or you could use Webby https://docs.sonatype.org/display/M2ECLIPSE/Integration+with+Maven+WAR+Plugin instead, it can handle arbitrary dynamic overlay structure, straight from the workspace and is really fast.

I had a class loading issues with recently released version 0.2.0 so you might want to pull version 0.1.0.201109060511 from http://m2eclipse.sonatype.org/sites/archives/

Cheers,
Rafał

On 11/30/2011 04:59 PM, Fred Bricon wrote:
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 <[email protected] <mailto:[email protected]>> 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
    [email protected] <mailto:[email protected]>
    https://dev.eclipse.org/mailman/listinfo/m2e-users




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


_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to