Hello,
I am using plexus-maven-plugin:1.3.8 on a custom maven plugin. The
plugin already contains a components.xml containing 2 lifecycle
mappings for custom Maven packaging types. I wanted to add a few other
Plexus components using Javadoc annotations. I configured both the
descriptor goal and the merge-descriptors goal. However, I can't seem
to get the resources parameter correctly configured to only pickup the
folders of my custom written and generated components.xml. I started
with just folder names between the resource tags in the POM
configuration, but eventually tried to replicate the object structure
of such a resource in XML:
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-maven-plugin</artifactId>
<version>1.3.8</version>
<executions>
<execution>
<id>generate-component-descriptors</id>
<goals>
<goal>descriptor</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/generated-resources</outputDirectory>
</configuration>
</execution>
<execution>
<id>merge-component-descriptors-with-lifecycles</id>
<goals>
<goal>merge-descriptors</goal>
</goals>
<configuration>
<resources>
<resource>
<fileSet>
<directory>${basedir}/resources/xml/</directory>
</fileSet>
</resource>
<resource>
<fileSet>
<directory>${basedir}/target/generated-resources/</directory>
<patternSet>
<includes>**/*.xml</includes>
</patternSet>
</fileSet>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
Nothing seems to work. Any input on how to correctly configure the
merge-descriptors goal would be much appreciated.
As a work-around, I'm currently generating my descriptor to the folder
"web" as this seems to be picked up. This folder is not cleaned
however, so it should remain a temporary workaround.
Ringo
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email