cjn schrieb:
Ok. What's the maven equivalent of "ant -projecthelp"? The main reason I
struggle with Maven is I don't know the magic target names to invoke.
I'm using ServiceMix 3.1.1, and am following the embedding instructions
at http://incubator.apache.org/servicemix/embedding.html, which suggests to
use servicemix.xml files from the basic example, however this uses XBean not
Spring. Do you have an example of a working servicemix.xml using Spring, I
just
get schema errors when I attempt to guess something myself.
As for the source code for each example, I don't have any below the examples
directory,
just XML and poms files. After completing a maven build I still don't have
any
source code (the documentation states there should be some some under
examples\basic\src\main\resources). Am I looking in the wrong place?
Xbean is just a layer over spring that allows to name beans other than
<bean>. So in fact
servicemix.xml always uses spring.
The way I learned the inner workings is by looking at the unit tests of
the servicemix modules.
You can take a servicemix module like servicemix-core and use "mvn
eclipse:eclipse" on the source code.
The result will be an eclipse .project file that allows you to import
the module directly into eclipse. Then you can look at
the unit tests below src/test/java and debug through them. This way you
learn how servicemix works below xbean on the pure
java objects.
In another post you wrote about the basic maven commands. What you
mostly need is "mvn install". This compiles the code and packages it.
For some examples you need other targets but these are described in the
readmes normally.
Best regards
Christian
--
Christian Schneider
---
http://www.liquid-reality.de