Hi Claus,
+1 for this idea. Maven obviously is more powerful regarding the
dependency management.
We do same for CXF examples and specifically add a antbuild example to
demonstrate how ant works, for other examples, just remove the ant
support.
Freeman
On 2011-7-8, at 下午4:24, Claus Ibsen wrote:
Hi
We have 34 examples in the Camel kit. And frankly to keep most of them
updated to work and run with Apache Ant is a p*** in the ****.
I would like to discuss if we should consider reducing the number of
examples that can run with Ant?
The current pain points
- Keep Ant examples up to date is manual labor
- Some examples dont currently work as documented in README.txt file
- End user will have to manually download 3rd party libraries such as
Spring, ActiveMQ, Hibernate etc.
- End user will have to set environment variables for home, eg
ACTIVEMQ_HOME, ASPECTJ_HOME, HIBERNATE_HOME etc.
- Some examples have migrated and uses OpenJPA with Maven instead of
Hibernate, and thus running with Maven vs. Ant diverts.
I suggest that we remove ANT support for the more complicated examples
where you need to download many different 3rd party projects and
whatnot.
We may want to keep it on a few simpler examples that we know can be
supported.
Sidebar
======
Now that we talk about examples. I would like to add a very simple
hello world examples as well.
Something we can use in the getting started guide, so people who
download the .zip / .tar can follow a guide.
And run the hello world example and see that Camel is up and running
quickly.
For example it could be based on the maven archetype that creates a
sample project (that example which moves files using a Content Based
Router).
Then we could have this example supported by Ant and Maven.
=====
Any thoughts?
--
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com