Skip to content

Instantly share code, notes, and snippets.

@dwcramer
Created February 22, 2012 17:52
Show Gist options
  • Save dwcramer/1886299 to your computer and use it in GitHub Desktop.
Save dwcramer/1886299 to your computer and use it in GitHub Desktop.
Example of using executions in your pom
<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>
@dwcramer
Copy link
Author

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>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment