Skip to content

Commit

Permalink
avoid full maven distro for test in build.outputDirectory as it is in…
Browse files Browse the repository at this point in the history
…cluded in the plugin jar (#306)

Signed-off-by: Olivier Lamy <olamy@apache.org>
  • Loading branch information
olamy authored Mar 1, 2023
1 parent aeabc96 commit ea81521
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -793,16 +793,29 @@ THE SOFTWARE.
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<buildDirectory>${project.build.directory}</buildDirectory>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-binary-files</id>
<phase>process-resources</phase>
<id>unpack-mvn-home-for-test</id>
<phase>process-test-resources</phase>
<goals>
<goal>copy</goal>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
Expand All @@ -812,7 +825,7 @@ THE SOFTWARE.
<version>3.6.3</version>
<type>zip</type>
<classifier>bin</classifier>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<outputDirectory>${project.build.directory}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
Expand Down

0 comments on commit ea81521

Please sign in to comment.