graniteit:init-sling-junit

Full name:

net.adamcin:graniteit-maven-plugin:0.8.0:init-sling-junit

Description:

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

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 0.6.0 .
  • Binds by default to the lifecycle phase: pre-integration-test.

Optional Parameters

Name Type Since Description
baseUrl String 0.6.0
Server base URL (including context path, but without trailing slash)

Default value is: http://localhost:4502.
User property is: graniteit.baseUrl.
localRepositoryPath File 0.6.0
Specify the local repository path for resolved artifacts Refer to maven-install-plugin:install-file

User property is: graniteit.localRepositoryPath.
noProxy boolean 0.6.0
Set to true to completely disable HTTP proxy connections for this plugin. Overrides any other HTTP proxy configuration

User property is: graniteit.proxy.noProxy.
password String 0.6.0
Password to use in connection credentials

Default value is: admin.
User property is: graniteit.password.
proxyHost String 0.6.0
The HTTP Proxy hostname

Default value is: localhost.
User property is: graniteit.proxy.host.
proxyPassword String 0.6.0
The HTTP Proxy password

User property is: graniteit.proxy.password.
proxyPort int 0.6.0
The HTTP Proxy port. Set to -1 to use the default proxy port.

User property is: graniteit.proxy.port.
proxyProtocol String 0.6.0
The HTTP Proxy protocol

Default value is: http.
User property is: graniteit.proxy.protocol.
proxyServerId String 0.6.0
Server ID for proxy credentials defined in maven settings

User property is: graniteit.proxy.serverId.
proxySet boolean 0.6.0
Set to true to override the proxy configuration in the user's Maven Settings with the associated mojo parameter alternatives

User property is: graniteit.proxy.set.
proxyUsername String 0.6.0
The HTTP Proxy username

User property is: graniteit.proxy.username.
serverId String 0.6.0
Id of server defined in the maven settings to use for credentials

User property is: graniteit.serverId.
skip boolean 0.6.0
set to true to specifically disable this goal

User property is: graniteit.skip.init-sling-junit.
skipITs boolean 0.6.0
By convention, this parameter is used to disable execution of the maven-failsafe-plugin. It is recognized by graniteit to disable uploading of test artifacts and integration test reporting goals.

User property is: skipITs.
skipMkdirs boolean 0.6.0
Set to true to skip the use of the MKCOL WebDAV method for the creation ancestor JCR paths

User property is: graniteit.skip.mkdirs.
skipTests boolean 0.6.0
By convention, this parameter is used to disable execution of maven-surefire-plugin-derived goals. It is recognized by graniteit to disable uploading of test artifacts and integration test reporting goals.

User property is: skipTests.
slingJunitServletExpectedContent String 0.6.0
Set to specify the expected response content for the sling junit servlet check request

Default value is: SlingJUnitServlet.
slingJunitServletPath String 0.6.0
Set to explicity override the value of the sling junit servlet path property, such as when tests should be executed by the non-Sling Server-Side Test execution servlet Setting this property disables the creation of a sling junit test resource.

slingJunitServletPathProperty String 0.6.0
Specify the System property which will be set with the sling junit servlet path for use by integration test classes executed by the SlingAnnotationsTestRunner

Default value is: sling.junit.path.
slingJunitTimeout int 0.6.0
Number of seconds to wait while pinging the sling junit servlet for the expected response

Default value is: 60.
slingJunitVersion String 0.6.0
Specify to override the resolved version of Sling Junit Framework dependencies. Leave blank to detect the version from project-defined sling junit dependencies

User property is: sling.junit.version.
testResourceParentPath String 0.6.0
Specify the parent path of the newly created sling junit test resource

Default value is: /test/sling.
testResourcePathInfo String 0.6.0
Specify the Sling request selectors and extension to build the servlet path.

Default value is: .junit.
testResourceType String 0.6.0
Specify the value of the sling:resourceType property on the test resource

Default value is: sling/junit/testing.
username String 0.6.0
Specify the CQ username associated with package creation and installation

Default value is: admin.
User property is: graniteit.username.

Parameter Details

baseUrl:

Server base URL (including context path, but without trailing slash)
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.baseUrl
  • Default: http://localhost:4502

localRepositoryPath:

Specify the local repository path for resolved artifacts Refer to maven-install-plugin:install-file
  • Type: java.io.File
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.localRepositoryPath

noProxy:

Set to true to completely disable HTTP proxy connections for this plugin. Overrides any other HTTP proxy configuration
  • Type: boolean
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.proxy.noProxy

password:

Password to use in connection credentials
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.password
  • Default: admin

proxyHost:

The HTTP Proxy hostname
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.proxy.host
  • Default: localhost

proxyPassword:

The HTTP Proxy password
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.proxy.password

proxyPort:

The HTTP Proxy port. Set to -1 to use the default proxy port.
  • Type: int
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.proxy.port

proxyProtocol:

The HTTP Proxy protocol
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.proxy.protocol
  • Default: http

proxyServerId:

Server ID for proxy credentials defined in maven settings
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.proxy.serverId

proxySet:

Set to true to override the proxy configuration in the user's Maven Settings with the associated mojo parameter alternatives
  • Type: boolean
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.proxy.set

proxyUsername:

The HTTP Proxy username
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.proxy.username

serverId:

Id of server defined in the maven settings to use for credentials
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.serverId

skip:

set to true to specifically disable this goal
  • Type: boolean
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.skip.init-sling-junit

skipITs:

By convention, this parameter is used to disable execution of the maven-failsafe-plugin. It is recognized by graniteit to disable uploading of test artifacts and integration test reporting goals.
  • Type: boolean
  • Since: 0.6.0
  • Required: No
  • User Property: skipITs

skipMkdirs:

Set to true to skip the use of the MKCOL WebDAV method for the creation ancestor JCR paths
  • Type: boolean
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.skip.mkdirs

skipTests:

By convention, this parameter is used to disable execution of maven-surefire-plugin-derived goals. It is recognized by graniteit to disable uploading of test artifacts and integration test reporting goals.
  • Type: boolean
  • Since: 0.6.0
  • Required: No
  • User Property: skipTests

slingJunitServletExpectedContent:

Set to specify the expected response content for the sling junit servlet check request
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • Default: SlingJUnitServlet

slingJunitServletPath:

Set to explicity override the value of the sling junit servlet path property, such as when tests should be executed by the non-Sling Server-Side Test execution servlet Setting this property disables the creation of a sling junit test resource.
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No

slingJunitServletPathProperty:

Specify the System property which will be set with the sling junit servlet path for use by integration test classes executed by the SlingAnnotationsTestRunner
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • Default: sling.junit.path

slingJunitTimeout:

Number of seconds to wait while pinging the sling junit servlet for the expected response
  • Type: int
  • Since: 0.6.0
  • Required: No
  • Default: 60

slingJunitVersion:

Specify to override the resolved version of Sling Junit Framework dependencies. Leave blank to detect the version from project-defined sling junit dependencies
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: sling.junit.version

testResourceParentPath:

Specify the parent path of the newly created sling junit test resource
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • Default: /test/sling

testResourcePathInfo:

Specify the Sling request selectors and extension to build the servlet path.
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • Default: .junit

testResourceType:

Specify the value of the sling:resourceType property on the test resource
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • Default: sling/junit/testing

username:

Specify the CQ username associated with package creation and installation
  • Type: java.lang.String
  • Since: 0.6.0
  • Required: No
  • User Property: graniteit.username
  • Default: admin