Skip to content

Commit

Permalink
Prevent JNI code from loading under testjna
Browse files Browse the repository at this point in the history
and vice-versa

JNA code must not depend in JNI and vice-versa
  • Loading branch information
sebbASF committed Nov 9, 2023
1 parent bac5269 commit 9d86673
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ The following provides more details on the included cryptographic software:
<!-- Allow testing of JNI code only -->
<profile>
<id>testjni</id>
<properties>
<!-- prevent JNA code from loading -->
<commons.crypto.OpenSslNativeJna>_</commons.crypto.OpenSslNativeJna>
</properties>
<build>
<plugins>
<plugin>
Expand All @@ -350,6 +354,10 @@ The following provides more details on the included cryptographic software:
<!-- Allow testing of JNA code only -->
<profile>
<id>testjna</id>
<properties>
<!-- prevent JNI code from loading -->
<jni.library.name>_</jni.library.name>
</properties>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -670,6 +678,7 @@ The following provides more details on the included cryptographic software:
<version>${jna.version}</version>
</dependency>
<dependency>
<!-- Currently only used for IOUtils.contentEquals in NativeCodeLoader -->
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.15.0</version>
Expand Down

0 comments on commit 9d86673

Please sign in to comment.