<dependency>
<groupId>org.apache.geronimo.arthur.knights</groupId>
<artifactId>jsch-knight</artifactId>
<version>${arthur.version}</version>
</dependency>
Arthur JSch knight is responsible to support JSch. It preconfigures the reflection and enforce the security support of the native-image.
<dependency>
<groupId>org.apache.geronimo.arthur.knights</groupId>
<artifactId>jsch-knight</artifactId>
<version>${arthur.version}</version>
</dependency>
to ensure it is usable you must package with your binary sunec native library. It can be done this way:
|
<plugin>
<groupId>${project.groupId}</groupId>
<artifactId>arthur-maven-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<main>org.apache.geronimo.arthur.demo.JschMain</main>
<graalExtensions> (1)
<graalExtension>jsch</graalExtension>
</graalExtensions>
<includeNatives> (2)
<includeNative>sunec</includeNative>
</includeNatives>
<includeCacerts>true</includeCacerts> (3)
</configuration>
</plugin>
1 | Ensure JSch knight is added for the build |
2 | Ensure sunec is packaged in docker images (optional if you don’t bundle the native binary in a container) |
3 | Ensure JVM certificates are bundles in docker images (optional as sunec) |
if you want to use custom native libraries and/or a custom trustore, you can use otherFiles configuration of the mojo.
|
Previous: Knights