I'm building an application that is based on Jetspeed. For various reasons,
we want to compile three of the key components (Velocity, Turbine and
Jetspeed) from source, so I have set them up as subprojects (I think).
There is one problem (at least): Velocity does not use Maven and Jetspeed's
Maven support won't work until (supposedly) beta 3 (on beta 2 right now).
Dependency-wise, Turbine relies on Velocity. Jetspeed relies on Turbine. My
app relies on Jetspeed.
My project directory (itag) looks like so (roughly):
itag
src
jakarta-jetspeed
src
jakarta-turbine-2
src
jakarta-velocity
src
maven.xml
project.xml
... etc. ...
How would you go about compiling this thing? I have it working with a weird
amalgam of stuff, but it is pretty kludgy. For example, my main maven.xml
file runs an Ant script that: a) compiles velocity by invoking its Ant
script, b) compiles Turbine by calling Exec to run Maven (!) and c) compiles
jetspeed by calling Exec to run it's build.bat file (this is a Win32
system).
It works, but I strongly suspect I'm not really doing things "the Maven
way". What would "the Maven way" be in this case?
One piece of the puzzle that I seem to be missing (though maybe it doesn't
help in this case): I'm not exactly sure how you invoke the default build
process from inside a maven.xml file. That is, if you have no maven.xml
file, calling "maven" on the command line will do a standard build. Say what
I want to do is have my maven.xml do some processing before and after, with
the standard build in-between. How do I do that? I'm pretty sure this is
easy, but my brain's a bit fried at the moment.
Also, I'm trying to target the builds of all of these projects into a
.single. classes directory (defined by a property). I have this working as
well, but it is scary.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>