Created
February 22, 2012 17:52
-
-
Save dwcramer/1886299 to your computer and use it in GitHub Desktop.
Example of using executions in your pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.rackspace.cloud.api</groupId> | |
<artifactId>clouddocs-maven-plugin</artifactId> | |
<version>1.0.10</version> | |
<executions> | |
<execution> | |
<id>g1</id> | |
<goals> | |
<goal>generate-pdf</goal> | |
<goal>generate-webhelp</goal> | |
</goals> | |
<phase>generate-sources</phase> | |
<configuration> | |
<includes> | |
doc1.xml | |
</includes> | |
<!-- put any doc specific config here, e.g.: --> | |
<security>internal</security> | |
</configuration> | |
</execution> | |
<execution> | |
<id>g2</id> | |
<goals> | |
<goal>generate-pdf</goal> | |
<goal>generate-webhelp</goal> | |
</goals> | |
<phase>generate-sources</phase> | |
<configuration> | |
<includes> | |
doc2.xml,doc3.xml | |
</includes> | |
<!-- put any doc specific config here --> | |
</configuration> | |
</execution> | |
</executions> | |
<configuration> | |
<xincludeSupported>true</xincludeSupported> | |
<!-- General config here --> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wish I could comment on individual lines like I can on commits. Note that the <id> for each <execution> has to be unique in the pom. You can have as many <execution>s as you want. Each can have its own <configuration>. The <configuration> at the bottom (at the <plugin> level) applies to all the <execution>s unless overridden in that <execution>'s <configuration>.