[GERONIMO-6842] support java >= 17 (native libraries lookup)
diff --git a/arthur-maven-plugin/src/main/java/org/apache/geronimo/arthur/maven/mojo/JibMojo.java b/arthur-maven-plugin/src/main/java/org/apache/geronimo/arthur/maven/mojo/JibMojo.java
index e5e40e2..ffc7881 100644
--- a/arthur-maven-plugin/src/main/java/org/apache/geronimo/arthur/maven/mojo/JibMojo.java
+++ b/arthur-maven-plugin/src/main/java/org/apache/geronimo/arthur/maven/mojo/JibMojo.java
@@ -474,7 +474,10 @@
             nativeFolder = nativeFolder.getParent();
             try {
                 if (!Files.exists(nativeFolder) || !Files.list(nativeFolder).anyMatch(it -> it.getFileName().toString().endsWith(".so"))) {
-                    throw new IllegalArgumentException("No native folder '" + nativeFolder + "' found.");
+                    nativeFolder = home.resolve("lib");
+                    if (!Files.exists(nativeFolder)) { // java 17 and after
+                        throw new IllegalArgumentException("No native folder '" + nativeFolder + "' found.");
+                    }
                 }
             } catch (final IOException e) {
                 throw new IllegalStateException(e);