[ 
https://jira.codehaus.org/browse/MWAR-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315078#comment-315078
 ] 

Muneer Syed commented on MWAR-128:
----------------------------------

Here is solution or workaround for this

Create a dummy file empty.tmp in the directory which you want to include e.g. 
src/main/webapp/myemptydir/empty.tmp
And use packagingExcludes that file, in the war the dummy file will be skipped 
but empty directory will be present

<plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>${maven.war.plugin.version}</version>
        <configuration>
                <packagingExcludes>**/empty.tmp</packagingExcludes>
        </configuration>
</plugin>
                
> war goal does not copy empty directories from webapp directory
> --------------------------------------------------------------
>
>                 Key: MWAR-128
>                 URL: https://jira.codehaus.org/browse/MWAR-128
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Ken Geis
>
> I have an empty directory src/main/webapp/WEB-INF/logs.  I expect it to be 
> created in target when the war goal tells me "Copy webapp webResources to 
> ..."  It does not get created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to