You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Oleksandr Alesinskyy (JIRA)" <ji...@codehaus.org> on 2011/09/14 17:01:17 UTC
[jira] Commented: (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:comment-tabpanel&focusedCommentId=278952#comment-278952 ]
Oleksandr Alesinskyy commented on MWAR-261:
-------------------------------------------
May added that this change occurred in 2.1-alpha-1 or in 2.1-alpha-2 (2.0.2 still excludes files, 2.1-alpha-2 does not exclude, builds with 2.1-alpha-1 fail in the middle due to ClassNotFoundException).
> "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.
For more information on JIRA, see: http://www.atlassian.com/software/jira