You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Adrian Herscu <bm...@fastmail.fm> on 2007/02/27 14:08:00 UTC
[m2] binding to the site phase
Hi all,
Is it possible to bind something to the site phase?
In META-INF/plexus/components.xml I have tried:
<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>foo</role-hint>
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
<configuration>
<phases>
<process-sources>org.foo.buildsys.maven:foo-buildsys-maven:validate-xml</process-sources>
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
<compile>org.foo.buildsys.maven:foo-buildsys-maven:compile</compile>
<process-test-sources>org.foo.buildsys.maven:foo-buildsys-maven:testValidate-xml</process-test-sources>
<process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
<test-compile>org.foo.buildsys.maven:foo-buildsys-maven:testCompile</test-compile>
<test>org.foo.buildsys.maven:foo-buildsys-maven:test</test>
<!-- DOESNOTWORK
site>org.foo.buildsys.maven:foo-buildsys-maven:generate-docs</site-->
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
<package>org.foo.buildsys.maven:foo-buildsys-maven:war</package>
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
</phases>
</configuration>
</component>
I understand that the site phase is not part of the default lifecycle,
but I cannot figure out how do I create the binding.
Please help,
Adrian.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] binding to the site phase
Posted by Eric Redmond <er...@gmail.com>.
Try:
...
<configuration>
<lifecycles>
<lifecycle>
<id>site</id>
<phases>
<site>org.foo.buildsys.maven:foo-buildsys-maven:generate-docs
</site>
</phases>
...
Eric
On 2/27/07, Adrian Herscu <bm...@fastmail.fm> wrote:
>
> Hi all,
>
> Is it possible to bind something to the site phase?
>
> In META-INF/plexus/components.xml I have tried:
>
> <component>
> <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
> <role-hint>foo</role-hint>
>
> <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
> </implementation>
> <configuration>
> <phases>
>
> <process-sources>org.foo.buildsys.maven:foo-buildsys-maven:validate-xml
> </process-sources>
>
> <process-resources>
> org.apache.maven.plugins:maven-resources-plugin:resources
> </process-resources>
>
> <compile>org.foo.buildsys.maven:foo-buildsys-maven:compile</compile>
>
> <process-test-sources>
> org.foo.buildsys.maven:foo-buildsys-maven:testValidate-xml
> </process-test-sources>
>
> <process-test-resources>
> org.apache.maven.plugins:maven-resources-plugin:testResources
> </process-test-resources>
>
> <test-compile>org.foo.buildsys.maven:foo-buildsys-maven:testCompile
> </test-compile>
> <test>org.foo.buildsys.maven:foo-buildsys-maven:test</test>
>
>
> <!-- DOESNOTWORK
> site>org.foo.buildsys.maven:foo-buildsys-maven:generate-docs</site-->
>
>
> <install>org.apache.maven.plugins:maven-install-plugin:install</install>
> <package>org.foo.buildsys.maven:foo-buildsys-maven:war
> </package>
>
> <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
> </phases>
> </configuration>
> </component>
>
> I understand that the site phase is not part of the default lifecycle,
> but I cannot figure out how do I create the binding.
>
> Please help,
> Adrian.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Eric Redmond
http://codehaus.org/~eredmond