col-panic opened a new issue, #8698:
URL: https://github.com/apache/camel-quarkus/issues/8698

   ### Describe the feature here
   
   I added 
   ```
           <dependency>
               <groupId>org.apache.camel.quarkus</groupId>
               <artifactId>camel-quarkus-milo</artifactId>
               <exclusions>
                   <exclusion>
                       <artifactId>milo-sdk-server</artifactId>
                       <groupId>org.eclipse.milo</groupId>
                   </exclusion>
               </exclusions>
           </dependency>
   ```
   like this, as I only need the client part for a native build, and the server 
just bloats everything. But during native compile I see
   ```
   [ERROR] Failed to execute goal 
io.quarkus.platform:quarkus-maven-plugin:3.34.7:build (default) on project fcs: 
Failed to build quarkus application: io.quarkus.builder.BuildException: Build 
failure: Build failed due to errors
   [ERROR]         [error]: Build step 
org.apache.camel.quarkus.component.milo.deployment.MiloProcessor#runtimeInitializedClasses
 threw an exception: java.lang.NoClassDefFoundError: 
org/eclipse/milo/opcua/sdk/server/OpcUaServer
   [ERROR]         at 
org.apache.camel.quarkus.component.milo.deployment.MiloProcessor.runtimeInitializedClasses(MiloProcessor.java:41)
   [ERROR]         at 
java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:735)
   [ERROR]         at 
io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:898)
   [ERROR]         at io.quarkus.builder.BuildContext.run(BuildContext.java:242)
   [ERROR]         at 
org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
   [ERROR]         at 
org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2651)
   [ERROR]         at 
org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2630)
   [ERROR]         at 
org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1694)
   [ERROR]         at 
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1589)
   [ERROR]         at java.base/java.lang.Thread.run(Thread.java:1474)
   [ERROR]         at org.jboss.threads.JBossThread.run(JBossThread.java:501)
   [ERROR] Caused by: java.lang.ClassNotFoundException: 
org.eclipse.milo.opcua.sdk.server.OpcUaServer
   [ERROR]         at 
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
   [ERROR]         at 
org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:225)
   [ERROR]         at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:210)
   [ERROR]         at 
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:205)
   [ERROR]         at 
io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:578)
   [ERROR]         at 
io.quarkus.bootstrap.classloading.QuarkusClassLoader.loadClass(QuarkusClassLoader.java:525)
   [ERROR]         ... 11 more
   [ERROR] -> [Help 1]
   ```
   Not sure why server is needed - I don't do any server references, and as 
documented in https://github.com/quarkusio/quarkus/issues/54459 I reverted to 
using only the client library which works - if not doing native!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to