Maven filtering for overlays does not work
Answered
I have a java web project with filtered overlay that runs correct with command
mvn clean tomcat:run-war
But if I set it up in Intellij and use "On frame deactivation: Updatea classes and resources"
Intellij will update classes and resources without filtering them, so the application will start crashing.
Is there any way to make this work somehow?
Example overlay:
<overlay>
<groupId>xxx</groupId>
<artifactId>yyy</artifactId>
<filtered>true</filtered>
<includes>
<include>META-INF/context.xml</include>
<include>robots.txt</include>
<include>WEB-INF/web.xml</include>
<include>WEB-INF/classes/*.properties</include>
</includes>
</overlay>
Please sign in to leave a comment.
Hello,
Sorry, but overlays aren't supported yet: https://youtrack.jetbrains.com/issue/IDEA-51429, https://youtrack.jetbrains.com/issue/IDEA-119933
Overlays are supported, because I have been using it for years with IntelliJ.
But from the issue I see that include / exclude syntax is not supported.
So basicly work arround would be to put those resources that I want to include as own package and use filtering without defining include or exclude, that can work for now, thanks for the help!