Skip to content

Commit

Permalink
Configure Failsafe to use the exploded classes directory
Browse files Browse the repository at this point in the history
By default, Failsafe uses the packaged JAR of the application under test + all its transitive dependencies. If the project also uses the Shade plugin (which we enable here by default, for the moment), this results in duplicate beans loaded.

Whether using shading or not, there is no advantage in using the packaged JAR, so this PR configures Failsafe to use the exploded classes directory.
  • Loading branch information
alvarosanchez committed Jul 29, 2024
1 parent 9b6f50f commit 094c1e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parent/src/pom-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
</goals>
</execution>
</executions>
<configuration>
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 094c1e4

Please sign in to comment.