You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2022/01/10 16:28:00 UTC
[jira] [Commented] (CAMEL-17465) the test for camel-archetype-cdi is broken
[ https://issues.apache.org/jira/browse/CAMEL-17465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17472144#comment-17472144 ]
Freeman Yue Fang commented on CAMEL-17465:
------------------------------------------
Read the code in org.apache.camel.maven.RunMojo, so if no camel-cdi main class is detected, it will use the default camel-spring main class.
Given the purpose of camel-archetype-cdi, I think we need to add camel-cdi-main dependency to fix the broken test here
> the test for camel-archetype-cdi is broken
> ------------------------------------------
>
> Key: CAMEL-17465
> URL: https://issues.apache.org/jira/browse/CAMEL-17465
> Project: Camel
> Issue Type: Test
> Components: camel-archetypes
> Reporter: Freeman Yue Fang
> Assignee: Freeman Yue Fang
> Priority: Major
>
> got error like
> {code}
> [INFO] Caused by: java.lang.ClassNotFoundException: org.apache.camel.spring.Main
> [INFO] at java.net.URLClassLoader.findClass (URLClassLoader.java:471)
> [INFO] at java.lang.ClassLoader.loadClass (ClassLoader.java:589)
> [INFO] at java.lang.ClassLoader.loadClass (ClassLoader.java:522)
> [INFO] at org.apache.camel.maven.RunMojo$1.run (RunMojo.java:400)
> [INFO] at java.lang.Thread.run (Thread.java:829)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)