...
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.53 |
...
There are a few different ways you can run the examples depending on your preferences.
Running the examples in Maven
If you wish to use Maven to To run the first example using Maven, change directory into to the example you want to run then run issue the following command.:
Code Block |
---|
cd camel-example-jms-file
mvn exec:java
|
To run the other Spring-based examples such as the Spring Example then you , use the Camel Maven Plugin. For example:
Code Block |
---|
cd camel-example-spring mvn camel:run |
...
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.