essobedo opened a new pull request #52:
URL: https://github.com/apache/camel-examples/pull/52


   ## Motivation
   
   All examples that rely on Camel CDI don't start, it fails with the following 
error:
   
   ```
   [INFO] --- camel-maven-plugin:3.15.0-SNAPSHOT:run (default-cli) @ 
camel-example-cdi ---
   [INFO] You can skip tests from the command line using: mvn camel:run 
-Dmaven.test.skip=true
   [INFO] Using org.apache.camel.spring.Main to initiate a CamelContext
   [INFO] Starting Camel ...
   [ERROR] *************************************
   [ERROR] Error occurred while running main from: org.apache.camel.spring.Main
   [ERROR] 
   java.lang.ClassNotFoundException: org.apache.camel.spring.Main
       at java.net.URLClassLoader.findClass (URLClassLoader.java:471)
       at java.lang.ClassLoader.loadClass (ClassLoader.java:589)
       at java.lang.ClassLoader.loadClass (ClassLoader.java:522)
       at org.apache.camel.maven.RunMojo$1.run (RunMojo.java:400)
       at java.lang.Thread.run (Thread.java:829)
   [ERROR] *************************************
   ```
   This error is due to the fact that the way the plugin auto detects CDI apps 
has changed, now it expects that the project has the artifact `camel-cdi-main` 
as compile dependency
   
   ## Modifications:
   
   * Replaces `camel-cdi` with `camel-cdi-main` where it is needed
   


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to