You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/01/13 17:17:21 UTC

[GitHub] [camel-examples] essobedo opened a new pull request #52: Ensure that the main class for CDI apps is called by the plugin

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-unsubscribe@camel.apache.org

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



[GitHub] [camel-examples] davsclaus merged pull request #52: Ensure that the main class for CDI apps is called by the plugin

Posted by GitBox <gi...@apache.org>.
davsclaus merged pull request #52:
URL: https://github.com/apache/camel-examples/pull/52


   


-- 
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-unsubscribe@camel.apache.org

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