You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2012/09/26 00:47:38 UTC
[jira] (MWAR-261) "excludes" on ceased to work on resources from
warSourceDirectoryin 2.1.1 (worked in 2.0.1)
[ https://jira.codehaus.org/browse/MWAR-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MWAR-261.
--------------------------------
Resolution: Not A Bug
Yes, the behavior changed in version 2.1. That was intended. The docs are up-to-date now.
> "excludes" on ceased to work on resources from warSourceDirectoryin 2.1.1 (worked in 2.0.1)
> ---------------------------------------------------------------------------------------------
>
> Key: MWAR-261
> URL: https://jira.codehaus.org/browse/MWAR-261
> Project: Maven 2.x WAR Plugin
> Issue Type: Bug
> Affects Versions: 2.1.1
> Reporter: Oleksandr Alesinskyy
>
> I have a following configuration of the plugin
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>${war.plugin.version}</version>
> <configuration>
> <warSourceDirectory>src/main/webapp</warSourceDirectory>
> <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
> <excludes>
> **/tech_*.properties, **/*log4j*.properties,
> **/pom.xml, **/JasperReports/*.*,
> **/app_ffe_cryptography.keystore
> </excludes>
> <webResources>
> <resource>
> <directory>${basedir}/target/xsd-assembly/</directory>
> <targetPath>/</targetPath>
> <includes>
> <include>xsd/**/*.xsd</include>
> <include>wsdl/**/*.wsdl</include>
> </includes>
> </resource>
> </webResources>
> </configuration>
> </plugin>
> {code}
> If war.plugin.version is set to 2.0.1 then resulting war does not contain tech_*.properties files in its WEB-INF/classes directory.
> If war.plugin.version is set to 2.1.1 then files are present.
> As far as I can see this change in the behavior occurred silently - it is not mentioned in anywhere changelogs.
> Is it done intentionally?
>
--
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