neheh
neheh

Reputation: 61

Apache camel without maven

I have a hard time finding documentation/tutorials or just getting a dependency overview without going into some spiralling maven-nightmare.

I even have trouble getting the examples to work, as its an endless compile,run,search,repeat routine. Can anyone recommend some information resources for someone not succombing to the maven-pressure ?:)

Upvotes: 1

Views: 2531

Answers (5)

h3adache
h3adache

Reputation: 1386

If you are willing to at least START with ant (and although I cannot guarantee it works) but try using:

http://maven.apache.org/plugins/maven-ant-plugin/ant-mojo.html

This has an ant:ant task that will generate your build.xml from the maven project. It's not perfect but will give you an easy way to feed your ant addiction.

Also, as Claus Ibsen already pointed out (and of course he should know ;)) there are already build.xmls for most of the examples.

Upvotes: 0

Pascal Thivent
Pascal Thivent

Reputation: 570385

I have a hard time finding documentation/tutorials or just getting a dependency overview without going into some spiralling maven-nightmare.

Whatever your opinions on Maven are, the fact is that having some understanding of Maven would help you a lot, especially since many projects are using it and and even more especially in the particular case of Apache Camel which has a myriad of modules.

I even have trouble getting the examples to work, as its an endless compile, run, search, repeat routine. Can anyone recommend some information resources for someone not succombing to the maven-pressure

The fun part is that this would be extremely easy with Maven but never mind. Go to the maven generated website, look at the Camel :: Examples modules, click on any of the sample and check the Dependencies (under Project Information). And good luck with the manual setup of the classpath because each project has a decent bunch of dependencies if you take the transitive one into account :)

Update: As pointed out in another answer, the samples actually come with an Ant build.xml. Or you could use MOP to spit the class path for you or even directly run executable classes like this:

mop run org.apache.camel:camel-example-pojo-messaging org.apache.camel.spring.Main

Any of these options would be a lot easier than setting up the class path manually.

Upvotes: 7

Claus Ibsen
Claus Ibsen

Reputation: 55525

Nearly all examples have an ANT build.xml file as well, and there is a README.txt file telling you how to run the examples.

And if are not into learning how to Maven you could consider James Strachans newest tool called mop which is a command line launcher to run Java stuff. It can transparently download and use maven and its deps. So its just a matter of installing mop and using it to run the examples.

http://mop.fusesource.org/

Upvotes: 2

Jherico
Jherico

Reputation: 29240

What's wrong with the Camel distribution archive, which includes all the camel jars and all the dependent libraries as well?

Upvotes: 0

Chris Nava
Chris Nava

Reputation: 6802

Rather than downloading each missing resource, try to add repositories to your settings.xml that contain many of the resources you need.

This tool can help you locate repositories that have a given resource.

Specifically, the JavaNet repository has many of the previously "Restricted Sun" resources not available in the default global repository.

Upvotes: 0

Related Questions