Hello,
thanks, but I've already solved it differently. Actually I just wanted to
"override" some read-only properties of a maven plugin in order to being
able to specify them in my pom (i.e. I just wanted to remove the @readonly
option). However, I've found a way to specify the plugin.xml manually:
simply don't set "packaging" to maven-plugin but rather to "jar" and
configure the maven-plugin-plugin on your own. In doing so you're able to
omit the "plugin:descriptor" goal which would generate the plugin
descriptor.
The following configuration works for me:
///
...
<packaging>jar</packaging>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>updateRegistry</goal>
<goal>addPluginArtifactMetadata</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
\\\
regards,
Bernhard Huemer
Stuart McCulloch wrote:
>
> On 29/12/2007, Bernhard Huemer <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello,
>>
>> I'd like to extend a mojo that is packaged within another maven plugin
>> and
>> because the javadoc (and therefore the plugin metadata) isn't available
>> to
>> plexus I thought of describing the plugin metadata manually. Is it
>> possible
>> to specify this plugin descriptor somehow?
>
>
> you could try:
>
> http://www.ops4j.org/projects/pax/construct/maven-inherit-plugin
>
> although it's usually recommended to use shared components where possible
> rather than extend mojos from other plugins, because of potential issues
> when
> plugins depend on other plugins (but in some cases this is not an option)
>
> HTH
>
> regards,
>> Bernhard Huemer
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-specify-the-plugin-descriptor--tp14532228s177p14532228.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Cheers, Stuart
>
>
--
View this message in context:
http://www.nabble.com/How-to-specify-the-plugin-descriptor--tp14532228s177p14536099.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]