[
https://issues.apache.org/jira/browse/MWAR-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michal Domagala updated MWAR-371:
---------------------------------
Description:
I have WAR 'generic' containing 2 files: x/a1.txt and x/a2.txt
I have WAR 'custom' with two source files: src/main/custom/a1.txt and
src/main/custom/a1.txt and settings:
{code:xml}
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<webResource>
<directory>src/main/custom</directory>
<includes><include>a1.txt</include></includes>
<targetPath>x/</targetPath>
</webResource>
<webResource>
<directory>src/main/custom</directory>
<includes><include>a2.txt</include></includes>
<targetPath>x</targetPath>
</webResource>
</webResources>
</configuration>
{code}
Note that *targetPath* is different: *x/* vs *x*
When I build WAR 'custom'
Actual: a1.txt is generic, a2.txt is custom
Expected a1.txt and a2.txt are custom
was:
I have WAR 'generic' containing 2 files: x/a1.txt and x/a2.txt
I have WAR 'custom' with two source files: src/main/custom/a1.txt and
src/main/custom/a1.txt and settings:
{code:xml}
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<webResource>
<directory>src/main/custom</directory>
<includes><include>a1.txt</include></includes>
<targetPath>x/</targetPath>
</webResource>
<webResource>
<directory>src/main/custom</directory>
<includes><include>a2.txt</include></includes>
<targetPath>x</targetPath>
</webResource>
</webResources>
</configuration>
{code}
Note that **targetPath** is different: **x/** vs **x**
When I build WAR 'custom'
Actual: a1.txt is generic, a2.txt is custom
Expected a1.txt and a2.txt are custom
> Overlays break first-win rule for web resource with target path ending with
> '/'
> -------------------------------------------------------------------------------
>
> Key: MWAR-371
> URL: https://issues.apache.org/jira/browse/MWAR-371
> Project: Maven WAR Plugin
> Issue Type: Bug
> Components: overlay
> Affects Versions: 2.6
> Reporter: Michal Domagala
> Priority: Minor
>
> I have WAR 'generic' containing 2 files: x/a1.txt and x/a2.txt
> I have WAR 'custom' with two source files: src/main/custom/a1.txt and
> src/main/custom/a1.txt and settings:
> {code:xml}
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <webResources>
> <webResource>
> <directory>src/main/custom</directory>
> <includes><include>a1.txt</include></includes>
> <targetPath>x/</targetPath>
> </webResource>
> <webResource>
> <directory>src/main/custom</directory>
> <includes><include>a2.txt</include></includes>
> <targetPath>x</targetPath>
> </webResource>
> </webResources>
> </configuration>
> {code}
> Note that *targetPath* is different: *x/* vs *x*
> When I build WAR 'custom'
> Actual: a1.txt is generic, a2.txt is custom
> Expected a1.txt and a2.txt are custom
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)