maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <j...@codehaus.org>
Subject [jira] (MWAR-283) The war plugin copies resources defined as <webResources> over to src/main/webapp
Date Tue, 25 Sep 2012 22:57:36 GMT

     [ https://jira.codehaus.org/browse/MWAR-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dennis Lundberg closed MWAR-283.
--------------------------------

    Resolution: Not A Bug
    
> The war plugin copies resources defined as <webResources> over to src/main/webapp
> ---------------------------------------------------------------------------------
>
>                 Key: MWAR-283
>                 URL: https://jira.codehaus.org/browse/MWAR-283
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200)
> Maven home: /java/apache/maven-3.0.4
> Java version: 1.7.0_05, vendor: Oracle Corporation
> Java home: /java/jdk1.7.0_05/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux", version: "2.6.36.2", arch: "amd64", family: "unix"
>            Reporter: Martin Todorov
>
> I have the following setup:
> {code}
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-war-plugin</artifactId>
>         <version>2.1</version>
>         <configuration>
>                 <webappDirectory>${basedir}/src/main/webapp</webappDirectory>
>                 <warSourceExcludes>assets</warSourceExcludes>
>                 <failOnMissingWebXml>false</failOnMissingWebXml>
>                 <webResources>
>                         <resource>
>                                 <!-- this is relative to the pom.xml directory -->
>                                 <directory>${project.build.directory}/minified</directory>
>                         </resource>
>                 </webResources>
>         </configuration>
> </plugin>
> {code}
> The contents of the ${project.build.directory}/minified is being copied over to ${basedir}/src/main/webapp
which is unexpected. The <webResources/> should not be copied, but -- rather -- simply
be added to the final war.

--
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

        

Mime
View raw message