Skip to content

Commit

Permalink
Clean resources from previous build's volatiles (#2946)
Browse files Browse the repository at this point in the history
Fixes #2946

When test projects are built, their directories are polluted with build
results. This makes tests using those project unreliable.

This change removes some of the pollution to stabilize subsequent tests.
  • Loading branch information
basilevs authored and laeubi committed Oct 22, 2023
1 parent c1842b2 commit a8dae1a
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion tycho-compiler-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
- Sonatype Inc. - initial API and implementation
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -87,5 +88,24 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<failOnError>false</failOnError>
<filesets>
<fileset>
<directory>${project.basedir}/src/test/resources/projects</directory>
<includes>
<include>**/bin/**</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit a8dae1a

Please sign in to comment.