Regression: webResources are not included #577
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Activity
Adding explicitly what is in linked IT's
build.log:[INFO] Processing war project [INFO] Copying webapp webResources [/tmp/maven-war-plugin/target/it/war-resources/src/main/extra] to [/tmp/maven-war-plugin/target/it/war-resources/target/war-resources-1.0-SNAPSHOT] [DEBUG] Skipping excluded file: //another.jsp [INFO] Copying webapp resources [/tmp/maven-war-plugin/target/it/war-resources/src/main/webapp] [DEBUG] + index.jsp has been copied. [DEBUG] + WEB-INF/web.xml has been copied. [DEBUG] Dump of the current build pathSet content --> [DEBUG] index.jsp [DEBUG] WEB-INF/web.xml [DEBUG] -- end of dump --As a workaround - using
<targetPath></targetPath>(empty) or dropping it - works fine.Thanks Piotrek for the mention. I can reproduce this issue.
I was also hit by this regression. When do you plan to release an updated fixed version?
I was also hit by this regression. When do you plan to release an updated fixed version?
on my list ... I will look at weekend
Reacted by marco borgnaReacted by Mauro Molinari
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Affected version
3.5.0
Bug description
Starting with the release of version 3.5.0 my Maven project will not copy
webResourcesinto the created war file. I have created an integration test reproducing the issue that can be found at JimmyAx@8dbd31b It tries to includeanother.jspinto the created war file. It works fine for 3.4.0 but is failing for 3.5.0.With a
git bisectI managed to narrow it down to 95ab859 being the commit that introduced the issue. I believe thatAbstractWarPackagingTask.isExcludedis not working as intended. It's ending up in the lastreturn truewhich will causeanother.jspto be excluded from the created war file rather than included as it previously was.