Skip to content

Commit

Permalink
fix(jhipster#22487): Remove warning for resources plugins (jhipster#2…
Browse files Browse the repository at this point in the history
…3946)

This PR fixes only the warning emitted by the maven-resource-plugin

* It uses a specific execution ID to not have the configuration applied to the default resources:resources mojo
* It removes the copy of non-filtered files which is already done by resources:resources
  • Loading branch information
aheritier committed Oct 23, 2023
1 parent 9a22239 commit 8e247b6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions generators/server/templates/pom.xml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<id>default-resources</id>
<id>config-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
Expand All @@ -777,13 +777,6 @@
<include>config/*.yml</include>
</includes>
</resource>
<resource>
<directory><%= SERVER_MAIN_RES_DIR %></directory>
<filtering>false</filtering>
<excludes>
<exclude>config/*.yml</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
Expand Down

0 comments on commit 8e247b6

Please sign in to comment.