Hi,
[Some nonsense background, feel free to skip ahead] I'm new to this
list. I've been looking over the source of Maven and Jelly the last
couple of days, and am excited about these two projects. I think there
is tremendous potential, and the project has already come a long way
since the last time I looked at it. I plan on incorporating maven into
some of my existing projects, and getting my co-workers to adopt it as a
standard. I also hope to contribute to the project, as much as
possible.
With that said I'm up and running. I ran into problems building
individual plugins in Mavens repository (src/plugins-build dir). I was
able to build all of them at once, but wanted to build them individually
by name. I found no way to do this from src/plugins-build directory,
but found that there was a plugin-build in the maven.xml of the main
directory. However this did not work. I'm not sure if this is a
problem due to my environment (Cygwin + WinXP) or if others are having
similar problems.
I've modified the two maven.xml files. I feel that this way is a little
cleaner (correct me if I'm wrong, like I said above I'm new :-), and now
it works. Anyway, after looking through most of the documentation, I
felt that it was a cleaner solution.
Attached are the diffs.
- Mike
cvs diff maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/maven.xml,v
retrieving revision 1.80
diff -r1.80 maven.xml
150,154d149
< <echo>
< +----------------------------------------
< | Building ${plugin.name}
< +----------------------------------------
< </echo>
156,160c151,156
< <exec executable="${maven.bin.script}">
< <arg line="--nobanner"/>
< <arg line="-d ${maven.src.dir}/plugins-build/${plugin.name}"/>
< <arg line="-p ${maven.src.dir}/plugins-build/${plugin.name}/project.xml"/>
< </exec>
---
> <maven:maven
> descriptor="${maven.src.dir}/plugins-build/project.xml"
> goals="build-plugin"
> ignoreFailures="false"
> />
>
cvs diff maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/plugins-build/maven.xml,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 maven.xml
18a19,32
>
> <goal
> name="build-plugin"
> description="Build Maven plugin by name $${plugin.name} into an installable jar">
>
> <maven:reactor
> basedir="${basedir}"
> includes="${plugin.name}/project.xml"
> goals="clean,plugin"
> banner="Building"
> ignoreFailures="false"
> />
> </goal>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]