maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephane Nicoll (JIRA)" <>
Subject [jira] Closed: (MWAR-244) Provide a mechanism for not including or having an empty webapp directory
Date Tue, 07 Dec 2010 07:43:57 GMT


Stephane Nicoll closed MWAR-244.

    Resolution: Won't Fix

I don't think adding a "empty webResource element equals remove the crap from a parent pom".
I agree it might be useful in your case but this has no valid semantic. Just fix your parent
pom. After all, if the parent states that some resources must be copied from directory foo
(whatever the config is) then it means it's a corporate standard. If not, well the pom is

> Provide a mechanism for not including or having an empty webapp directory
> -------------------------------------------------------------------------
>                 Key: MWAR-244
>                 URL:
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1.1
>            Reporter: Mike Calmus
>            Priority: Minor
> If the configured (or default) webapp directory does not exist, the plugin throws an
IllegalArgumentException saying the directory does not exist. There should be a way to proceed
without having to create an empty directory.
> [INFO] Trace
> java.lang.IllegalStateException: basedir D:\mydir\src\main\webapp does not exist
>         at org.codehaus.plexus.util.DirectoryScanner.scan(
>         at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.getFilesToCopy(
>         at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.copyResources(
>         at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleWebResources(
>         at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPackaging(
>         at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(
>         at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(
>         at org.apache.maven.plugin.war.WarMojo.performPackaging(
>         at org.apache.maven.plugin.war.WarMojo.execute(
>         ...

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message