I've created a plugin meant for building other plugins. It implements goals presented in each plugin's maven.xml files and intended to replace these uncoordinated files with an universal way to deal with plugins.
Draw attention to the <plugin:deploy> goal implemented here.
It actually deploys a plugin to the remote site and differ from the
behaviour currently implemented in most plugins (their <plugin:deploy>
goal just install jar file and unpack it that is unneeded now).
But this <plugin:deploy> goal will work correctly only after applying
groupId patch (I hope it will be applied soon in CVS) and setting
plugin's <groupId> to "maven". After that plugins will be deployed
into maven/jars directory on remote site.
The following changes allow to use this plugin in bootstrapping.
The main idea is to build first the reactor and the plugin builder
and then build other plugins with there two.
Index: build-bootstrap.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/build-bootstrap.xml,v
retrieving revision 1.168
diff -b -r1.168 build-bootstrap.xml
238a239,251
> | B U I L D I N G T H E P L U G I N B U I L D E R |
> | |
> +------------------------------------------------------------------+
> </echo>
>
> <exec executable="${maven.home}/bin/${maven.script}"
failonerror="true">
> <arg line="${maven.bootstrap.online}"/>
> <arg line="maven:plugin-builder-install"/>
> </exec>
>
> <echo>
> +------------------------------------------------------------------+
> | |
Index: maven.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/maven.xml,v
retrieving revision 1.53
diff -b -r1.53 maven.xml
31a32,42
> <goal name="maven:plugin-builder-install">
>
> <maven:maven
> basedir="${maven.src.dir}/plugins-build/plugin"
> descriptor="${maven.src.dir}/plugins-build/plugin/project.xml"
> goals="clean,plugin:install"
> ignoreFailures="false"
> />
>
> </goal>
>
--
Alexei Barantsev, ISP RAS
E-mail: [EMAIL PROTECTED]
ICQ : 3959207
plugin.tgz
Description: application/compressed
-- To unsubscribe, e-mail: <mailto:turbine-maven-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-maven-dev-help@;jakarta.apache.org>
