Arthur Logo Apache Geronimo Arthur
  • Apache
  • Documentation
  • Community
  • Downloads
  • ASF
    License Sponsorship Thanks
    Security

Arthur JSch Knights

Arthur JSch knight is responsible to support JSch. It preconfigures the reflection and enforce the security support of the native-image.

Coordinates

<dependency>
  <groupId>org.apache.geronimo.arthur.knights</groupId>
  <artifactId>jsch-knight</artifactId>
  <version>${arthur.version}</version>
</dependency>

Usage

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

Copyright © 1999-2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache Geronimo, Geronimo, Apache, the Apache feather logo, and the Apache Geronimo project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.