This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 53c7457884df chore: camel-launcher - enable native access in the 
manifest, so Java 24+ does not warn when JLine uses the FFM API (#29465)
53c7457884df is described below

commit 53c7457884df9702f596e5e135720cc293bc9fd9
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 9 13:16:04 2026 +0100

    chore: camel-launcher - enable native access in the manifest, so Java 24+ 
does not warn when JLine uses the FFM API (#29465)
    
    * chore: camel-launcher - enable native access in the manifest, so Java…
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 dsl/camel-jbang/camel-launcher/pom.xml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/dsl/camel-jbang/camel-launcher/pom.xml 
b/dsl/camel-jbang/camel-launcher/pom.xml
index aed071e6eaf1..225ae2979360 100644
--- a/dsl/camel-jbang/camel-launcher/pom.xml
+++ b/dsl/camel-jbang/camel-launcher/pom.xml
@@ -304,6 +304,19 @@
 
     <build>
         <plugins>
+            <!-- the repackaged self-executing JAR keeps this manifest -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifestEntries>
+                            <!-- JLine uses the FFM API for the terminal (JEP 
472: Java 24+ warns without it) -->
+                            
<Enable-Native-Access>ALL-UNNAMED</Enable-Native-Access>
+                        </manifestEntries>
+                    </archive>
+                </configuration>
+            </plugin>
             <!-- Create self-executing JAR using Spring Boot loader tools -->
             <plugin>
                 <groupId>org.apache.camel</groupId>
@@ -352,6 +365,10 @@
                                     
<useUniqueVersions>false</useUniqueVersions>
                                     
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                                 </manifest>
+                                <manifestEntries>
+                                    <!-- JLine uses the FFM API for the 
terminal (JEP 472: Java 24+ warns without it) -->
+                                    
<Enable-Native-Access>ALL-UNNAMED</Enable-Native-Access>
+                                </manifestEntries>
                             </archive>
                         </configuration>
                     </execution>

Reply via email to