Maven War Overlay with excludes/includes

Answered

Hi folks,

I'm using IntelliJ IDEA 2016.2.5 and I have a problem using maven war overlays with a specific configuration using excludes.

The overlay works fine but the excluded files are not excluded in the IntelliJ artefact contrary to a standard maven build.

Here's an exemple of the maven-war-plugin overlay configuration were i want the overlay to include all files except those in folders named 'folder' :

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<overlays>
<overlay>
<groupId>${project.groupId}</groupId>
<artifactId>SiteWebWar</artifactId>
<excludes>
<exclude>**/folder/**</exclude>
</excludes>
</overlay>
</overlays>
</configuration>
</plugin>

Thx for the help

Henri

1
3 comments

I'm having the same problem, have you ever solved it?

0
Avatar
Permanently deleted user

Unfortunately no, I still have the problem. 

0

Please follow the related issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-85450

0

Please sign in to leave a comment.