Skip to content

Commit

Permalink
Add profile for testing a custom build using all repository tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
baldimir committed Oct 23, 2024
1 parent b117581 commit c522df3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions build/optaplanner-build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -939,5 +939,48 @@
</plugins>
</build>
</profile>
<profile>
<id>test-with-custom-binaries</id>
<activation>
<property>
<name>unpackbuild.version</name>
</property>
<file>
<exists>src/main/java</exists>
</file>
</activation>
<properties>
<maven.main.skip>true</maven.main.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${unpackbuild.version}</version>
<type>${project.packaging}</type>
<overWrite>true</overWrite>
<outputDirectory>target/classes</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
<executions>
<execution>
<id>unpack-jar</id>
<phase>compile</phase>
<goals>
<goal>unpack</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit c522df3

Please sign in to comment.