I am new to maven and camel.
I tried executing the examples in camel book. And I am getting this error when I run the following command.
Command:
This error has happened to me as well. I was running this command which hasn't spaces between the parameters of mvn install its values.
With this command:
> mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file 
-Dfile=C:\Users\arcones\Desktop\ojdbc7.jar 
-DgroupId=com.oracle 
-DartifactId=ojdbc7 
-Dversion=12.1.0.1 
-Dpackaging=jar 
-DlocalRepositoryPath=lib
I got this error:
[ERROR] Unknown lifecycle phase ".oracle". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate , initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, genera te-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-class es, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, depl oy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
The problem got resolved by adding double quotes to each value:
> mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file 
-Dfile="C:\Users\arcones\Desktop\ojdbc7.jar" 
-DgroupId="com.oracle"
-DartifactId="ojdbc7"
-Dversion="12.1.0.1"
-Dpackaging="jar" 
-DlocalRepositoryPath="lib"
[INFO] BUILD SUCCESS