Skip to content

Instantly share code, notes, and snippets.

@crichey
Last active August 29, 2015 13:57
Show Gist options
  • Save crichey/9919663 to your computer and use it in GitHub Desktop.
Save crichey/9919663 to your computer and use it in GitHub Desktop.
Maven snippet for Roxy integration
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>clean modules</id>
<configuration>
<workingDirectory>${basedir}/../marklogic</workingDirectory>
<executable>./ml</executable>
<commandlineArgs>${factgem_environment} clean modules</commandlineArgs>
</configuration>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>deploy modules</id>
<configuration>
<workingDirectory>${basedir}/../marklogic</workingDirectory>
<executable>./ml</executable>
<commandlineArgs>${factgem_environment} deploy modules</commandlineArgs>
</configuration>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>clean content</id>
<configuration>
<workingDirectory>${basedir}/../marklogic</workingDirectory>
<executable>./ml</executable>
<commandlineArgs>${factgem_environment} clean content</commandlineArgs>
</configuration>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>load test data</id>
<configuration>
<workingDirectory>${basedir}/../marklogic</workingDirectory>
<executable>./ml</executable>
<commandlineArgs>${factgem_environment} load content</commandlineArgs>
</configuration>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>set collections on data</id>
<configuration>
<workingDirectory>${basedir}/../marklogic</workingDirectory>
<executable>./ml</executable>
<commandlineArgs>${factgem_environment} corb --uris=/corb/update-test-collection-uris.xqy --modules=/corb/update-test-collection.xqy
</commandlineArgs>
</configuration>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>unit tests</id>
<configuration>
<workingDirectory>${basedir}/../marklogic</workingDirectory>
<executable>./ml</executable>
<commandlineArgs>${factgem_environment} test</commandlineArgs>
</configuration>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>clean integration modules</id>
<configuration>
<workingDirectory>${basedir}/../marklogic</workingDirectory>
<executable>./ml</executable>
<commandlineArgs>dev clean modules</commandlineArgs>
</configuration>
<phase>site</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>deploy integration modules</id>
<configuration>
<workingDirectory>${basedir}/../marklogic</workingDirectory>
<executable>./ml</executable>
<commandlineArgs>dev deploy modules</commandlineArgs>
</configuration>
<phase>site</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment