Goals available for this plugin:
| Goal | Description |
|---|---|
| graniteit:help | Display help information on graniteit-maven-plugin. Call mvn graniteit:help -Ddetail=true
-Dgoal=<goal-name> to display parameter details. |
| graniteit:init-sling-junit | Initializes the Sling Junit Framework support by creating a
test resource on the server, setting the sling junit servlet User
property for the maven-failsafe-plugin execution, and waiting for
junit servlet readiness |
| graniteit:jacoco-data | Downloads the jacoco runtime data from the server using Sling
JacocoServlet, which was introduced in
org.apache.sling.junit.core:1.0.9-SNAPSHOT |
| graniteit:reset-jacoco | Resets the remote jacoco data prior to execution of the
integration-test phase. Because the Jacoco runtime is singular for
the instance, be careful to avoid running multiple
content-package-it builds against the same server at the same time,
as that might result in corrupt code coverage results. |
| graniteit:set-http-properties | Exports HTTP properties defined in HttpParameters
and the active Maven Proxy configuration for integration tests to
use via java.lang.System#getProperties. |
| graniteit:upload-content-package | Uploads the project content-package artifact to the configured
IT server |
| graniteit:upload-sling-junit | Upload the sling junit framework bundles necessary for
SlingRemoteTest execution, including: org.apache.sling.junit.core,
org.apache.sling.junit.remote, and
org.apache.sling.junit.scriptable |
| graniteit:upload-tests | Upload integration test dependencies, including
content-packages and OSGi bundles, to the configured integration
test server. |
| graniteit:wait-for-server | Waits for server readiness before continuing on to
integration-test phase. Fails the build if the configured timeout
is exceeded. |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 3.0 |
| JDK | Default target for maven-compiler-plugin version 2.5.1 |
| Memory | No minimum requirement. |
| Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project>
...
<build>
<!-- To define the plugin version in your parent POM -->
<pluginManagement>
<plugins>
<plugin>
<groupId>net.adamcin</groupId>
<artifactId>graniteit-maven-plugin</artifactId>
<version>0.8.0</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>net.adamcin</groupId>
<artifactId>graniteit-maven-plugin</artifactId>
<version>0.8.0</version>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"