...
First you need to Download a binary distribution.
Then To run the demos with maven, you need to download and install Apache Maven.
To test your Maven install you should be able to , change directory into to the examples directory and type:
Code Block |
---|
mvn -v |
You should see something like:
Code Block |
---|
camel-rider:/tmp/camel/examples$ mvn -v Maven version: 23.0.5 |
Running an example
...
3
|
Running the examples in Maven
If you wish to use Maven to To run the examples first example using Maven, change directory into to the example you want to run then run issue the following command:
Code Block |
---|
mvn exec:java
|
To run the other Spring-based examples such as the Spring Example, use the Camel Maven Plugin. For example:
Code Block |
---|
cd camel-example-jms-filespring mvn execcamel:javarun |
Running the examples in your IDE
In each example you can run the main() from your IDE if you prefer.
To get create an IDE project you may wish to IDEA project, run
Code Block |
---|
mvn idea:idea |
If you are an IDEA user; or if you use eclipse user...Eclipse user, run
Code Block |
---|
mvn ideaeclipse:ideaeclipse |
You should now be able to open the project(s) in your IDE and run any main() method you wish.