couldn't run chapter2/spring
poornan opened this issue · 1 comments
poornan commented
Environment: windows
Command: mvn clean compile camel:run
mvn clean compile camel:run
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< com.camelinaction:chapter2-spring >------------------
[INFO] Building Camel in Action 2 :: Chapter 2 :: Spring 2.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ chapter2-spring ---
[INFO] Deleting C:\camelinaction2\chapter2\spring\target
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ chapter2-spring ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ chapter2-spring ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to C:\camelinaction2\chapter2\spring\target\classes
[INFO]
[INFO] --- camel-maven-plugin:2.25.0:run (default-cli) @ chapter2-spring ---
[INFO] You can skip tests from the command line using: mvn camel:run -Dmaven.test.skip=true
[WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.
[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:381)
at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
at java.lang.ClassLoader.loadClass (ClassLoader.java:357)
at org.apache.camel.maven.RunMojo$1.run (RunMojo.java:498)
at java.lang.Thread.run (Thread.java:745)
[ERROR] *************************************
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.447 s
[INFO] Finished at: 2020-05-26T12:11:56+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.camel:camel-maven-plugin:2.25.0:run (default-cli) on project chapter2-spring: null: MojoExecutionException: org.apache.camel.spring.Main -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException