You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by nicolas de loof <ni...@apache.org> on 2008/11/28 16:30:27 UTC
how to use plexus-maven-plugin to both generate and merge descriptor ?
Hi
according to plexus doc, the plexus-maven-plugin has a merge goal
(process-resources phase) and an descriptor goal (process-classes phase)
Based on declared phases, It seems not possible to merge with the generated
descriptor, is it ?
Why does descriptor set process-classes phase and not generate-resources ??)
Re: how to use plexus-maven-plugin to both generate and merge descriptor ?
Posted by nicolas de loof <ni...@apache.org>.
Thanks !
2008/11/28 Jason van Zyl <jv...@sonatype.com>
> Nicolas,
>
> You can see an example here:
>
> http://svn.sonatype.org/nexus/trunk/nexus-parent/pom.xml
>
> The new plexus-component-metadata plugin will automatically handle:
> - generating components.xml from annotations
> - generation components.xml from javadoc
> - merging generated descriptors with static descriptors
> (src/main/resources/META-INF/plexus/components.xml with the generated ones)
> - everything lands in target/classes/META-INF/plexus/components.xml
>
> As long as you use standard locations you should be fine.
>
>
> On 28-Nov-08, at 7:30 AM, nicolas de loof wrote:
>
> Hi
>> according to plexus doc, the plexus-maven-plugin has a merge goal
>> (process-resources phase) and an descriptor goal (process-classes phase)
>>
>> Based on declared phases, It seems not possible to merge with the
>> generated
>> descriptor, is it ?
>> Why does descriptor set process-classes phase and not generate-resources
>> ??)
>>
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder, Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
>
> happiness is like a butterfly: the more you chase it, the more it will
> elude you, but if you turn your attention to other things, it will come
> and sit softly on your shoulder ...
>
> -- Thoreau
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: how to use plexus-maven-plugin to both generate and merge descriptor ?
Posted by Jason van Zyl <jv...@sonatype.com>.
Nicolas,
You can see an example here:
http://svn.sonatype.org/nexus/trunk/nexus-parent/pom.xml
The new plexus-component-metadata plugin will automatically handle:
- generating components.xml from annotations
- generation components.xml from javadoc
- merging generated descriptors with static descriptors (src/main/
resources/META-INF/plexus/components.xml with the generated ones)
- everything lands in target/classes/META-INF/plexus/components.xml
As long as you use standard locations you should be fine.
On 28-Nov-08, at 7:30 AM, nicolas de loof wrote:
> Hi
> according to plexus doc, the plexus-maven-plugin has a merge goal
> (process-resources phase) and an descriptor goal (process-classes
> phase)
>
> Based on declared phases, It seems not possible to merge with the
> generated
> descriptor, is it ?
> Why does descriptor set process-classes phase and not generate-
> resources ??)
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...
-- Thoreau
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to use plexus-maven-plugin to both generate and merge descriptor ?
Posted by Arnaud HERITIER <ah...@gmail.com>.
I don't know and I had to fix it in the project's build when I upgraded the
version of the plugin in the release plugin.
I bound it in the process-ressources
On Fri, Nov 28, 2008 at 4:30 PM, nicolas de loof <ni...@apache.org> wrote:
> Hi
> according to plexus doc, the plexus-maven-plugin has a merge goal
> (process-resources phase) and an descriptor goal (process-classes phase)
>
> Based on declared phases, It seems not possible to merge with the generated
> descriptor, is it ?
> Why does descriptor set process-classes phase and not generate-resources
> ??)
>
--
..........................................................
Arnaud HERITIER
12 guidelines to boost your productivity with a Java software factory -
http://tinyurl.com/56s9tw
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................