Skip to content

Commit

Permalink
Profile to allow testing with a packaged jar
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
sebbASF committed Nov 27, 2023
1 parent b297948 commit e3570a6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,23 @@ The following provides more details on the included cryptographic software:
</plugins>
</build>
</profile>

<!-- Allow testing with a packaged jar -->
<profile>
<id>test-with-jar</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<classesDirectory>/dev/null</classesDirectory>
<additionalClasspathElements>${project.build.directory}/${project.artifactId}-${project.version}.jar</additionalClasspathElements>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down

0 comments on commit e3570a6

Please sign in to comment.