Last active
August 29, 2015 13:57
-
-
Save crichey/9919663 to your computer and use it in GitHub Desktop.
Maven snippet for Roxy integration
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
<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