Hi, I'm trying to get my plugin to automatically call another one (the JAXB XJC Maven plugin).
Here is what users of my plugin currently have to write:
<project>
<build>
<plugins>
<plugin>
<groupId>com.sun.tools.xjc.maven2</groupId>
<artifactId>maven-jaxb-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaDirectory>Resources/Schemas</schemaDirectory>
</configuration>
</plugin>
<plugin>
<groupId>sample.plugin</groupId>
<artifactId>my-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<generate>...</generate>
</configuration>
</plugin>
</plugins>
</build>
</project>
This is what I would like my user's pom to look like :
<project>
<build>
<plugins>
<plugin>
<groupId>sample.plugin</groupId>
<artifactId>my-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<schemaDirectory>Resources/Schemas</schemaDirectory>
<generate>...</generate>
</configuration>
</plugin>
</plugins>
</build>
</project>
Is that feasible?
Thanks for your help,
Julien
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
