Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.6
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/a2.txt and settings:
<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>
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