net.adamcin.graniteit.mojo

UploadTestsMojo

class UploadTestsMojo extends BaseITMojo with RequiresProject with ResolvesArtifacts with OutputParameters with UploadsPackages with UploadsBundles

Upload integration test dependencies, including content-packages and OSGi bundles, to the configured integration test server.

Annotations
@Mojo()
Since

0.6.0

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UploadTestsMojo
  2. UploadsBundles
  3. UploadsPackages
  4. IdentifiesPackages
  5. HttpParameters
  6. OutputParameters
  7. ResolvesArtifacts
  8. BaseITMojo
  9. RequiresProject
  10. BaseMojo
  11. AbstractMojo
  12. ContextEnabled
  13. Mojo
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UploadTestsMojo()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final val DEFAULT_BASE_URL: String("http://localhost:4502")

    Definition Classes
    HttpParameters
  7. final val DEFAULT_PASS: String("admin")

    Definition Classes
    HttpParameters
  8. final val DEFAULT_PROXY_HOST: String("localhost")

    Definition Classes
    HttpParameters
  9. final val DEFAULT_PROXY_PROTOCOL: String("http")

    Definition Classes
    HttpParameters
  10. final val DEFAULT_USER: String("admin")

    Definition Classes
    HttpParameters
  11. lazy val activeProxy: Option[ProxyServer]

    Definition Classes
    HttpParameters
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. val autosave: Int

    Change the autosave threshold for the install command.

    Change the autosave threshold for the install command. 1024 is the minimum.

    Definition Classes
    UploadsPackages
  14. val baseUrl: String

    Server base URL (including context path, but without trailing slash)

    Server base URL (including context path, but without trailing slash)

    Definition Classes
    HttpParameters
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def copyToDir(dir: File, log: Log)(artifact: Artifact): File

    Definition Classes
    ResolvesArtifacts
  17. lazy val credentials: (String, String)

    Definition Classes
    HttpParameters
  18. final val defaultTestBundlePathPrefix: String("/system/console")

    Definition Classes
    UploadsBundles
  19. lazy val dependencies: List[Artifact]

    Definition Classes
    ResolvesArtifacts
  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def execute(): Unit

    Definition Classes
    UploadTestsMojoBaseMojo → Mojo
  23. def existsOnServer(packageId: Option[PackageId]): Either[Throwable, (Boolean, String)]

    Definition Classes
    UploadsPackages
  24. def expedite[T](req: Req, resp: Future[T]): (Req, T)

    Definition Classes
    HttpParameters
  25. val failOnError: Boolean

    Set to true to fail the build if an error occurs during upload

    Set to true to fail the build if an error occurs during upload

    Definition Classes
    UploadsBundles
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. implicit val force: Boolean

    Force upload of packages if they already exist in the target environment

    Force upload of packages if they already exist in the target environment

    Definition Classes
    UploadsPackages
  28. def getBundleSymbolicName(file: File): Either[Throwable, String]

    Definition Classes
    UploadsBundles
  29. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  30. def getExistingDir(file: File): File

    Definition Classes
    OutputParameters
  31. def getIdFromProperties(props: Properties, defaultId: Option[PackageId]): Option[PackageId]

    Definition Classes
    IdentifiesPackages
  32. def getLog(): Log

    Definition Classes
    AbstractMojo → Mojo
  33. def getPluginContext(): Map[_, _]

    Definition Classes
    AbstractMojo → ContextEnabled
  34. def getReqRespLogMessage(req: Req, resp: Response): String

    Definition Classes
    HttpParameters
  35. def getTestBundlePath(file: File): String

    Definition Classes
    UploadsBundles
  36. def getTestBundleRepoPath(filename: String): String

    Definition Classes
    UploadsBundles
  37. lazy val graniteitDirectory: File

    directory containing graniteit-generated files

    directory containing graniteit-generated files

    Definition Classes
    OutputParameters
  38. def handleError(message: Either[Throwable, List[String]], messages: List[String] = Nil): Either[Throwable, List[String]]

    Definition Classes
    UploadsBundles
  39. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  40. def identifyPackage(file: File): Option[PackageId]

    Definition Classes
    IdentifiesPackages
  41. implicit def implyDavVerbs(req: Req): DavReq

    Definition Classes
    HttpParameters
  42. def inputFileModified(output: File, inputFiles: Stream[File]): Boolean

    Definition Classes
    OutputParameters
  43. def inputFileModified(output: File, inputFiles: List[File]): Boolean

    Definition Classes
    OutputParameters
  44. def installPackage(packageId: Option[PackageId]): Either[Throwable, (Boolean, String)]

    Definition Classes
    UploadsPackages
  45. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  46. def isSlingPostSuccess(req: Req, resp: Response): Boolean

    Definition Classes
    HttpParameters
  47. def isSuccess(req: Req, resp: Response): Boolean

    Definition Classes
    HttpParameters
  48. def listFiles(file: File): Stream[File]

    Definition Classes
    OutputParameters
  49. lazy val localRepository: ArtifactRepository

    Definition Classes
    ResolvesArtifacts
  50. val localRepositoryPath: File

    Specify the local repository path for resolved artifacts Refer to maven-install-plugin:install-file

    Specify the local repository path for resolved artifacts Refer to maven-install-plugin:install-file

    Definition Classes
    ResolvesArtifacts
  51. def mkdir(absPath: String): (Req, Response)

    Definition Classes
    HttpParameters
  52. def mkdirs(absPath: String): (Req, Response)

    Definition Classes
    HttpParameters
  53. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  54. val noProxy: Boolean

    Set to true to completely disable HTTP proxy connections for this plugin.

    Set to true to completely disable HTTP proxy connections for this plugin. Overrides any other HTTP proxy configuration

    Definition Classes
    HttpParameters
  55. final def notify(): Unit

    Definition Classes
    AnyRef
  56. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  57. def optDecrypt(password: String): String

    Definition Classes
    HttpParameters
  58. lazy val outputDirectory: File

    target directory

    target directory

    Definition Classes
    OutputParameters
  59. def overwriteFile(file: File, content: String): Unit

    Definition Classes
    OutputParameters
  60. final val pA: Regex

    Definition Classes
    ResolvesArtifacts
  61. final val pGA: Regex

    Definition Classes
    ResolvesArtifacts
  62. final val pGATCV: Regex

    Definition Classes
    ResolvesArtifacts
  63. final val pGATV: Regex

    Definition Classes
    ResolvesArtifacts
  64. final val pGAV: Regex

    Definition Classes
    ResolvesArtifacts
  65. def parseServiceResponse(respBody: String): Either[Throwable, (Boolean, String)]

    Definition Classes
    UploadsPackages
  66. val password: String

    Password to use in connection credentials

    Password to use in connection credentials

    Definition Classes
    HttpParameters
  67. def postTestBundle(symbolicName: String, file: File): Either[Throwable, List[String]]

    Definition Classes
    UploadsBundles
  68. def proj: MavenProject

    Definition Classes
    ResolvesArtifacts
  69. var project: MavenProject

    Definition Classes
    RequiresProject
  70. val propertiesEntry: String

    Definition Classes
    IdentifiesPackages
  71. lazy val proxyCredentials: (String, String)

    Definition Classes
    HttpParameters
  72. val proxyHost: String

    The HTTP Proxy hostname

    The HTTP Proxy hostname

    Definition Classes
    HttpParameters
  73. val proxyPassword: String

    The HTTP Proxy password

    The HTTP Proxy password

    Definition Classes
    HttpParameters
  74. val proxyPort: Int

    The HTTP Proxy port.

    The HTTP Proxy port. Set to -1 to use the default proxy port.

    Definition Classes
    HttpParameters
  75. val proxyProtocol: String

    The HTTP Proxy protocol

    The HTTP Proxy protocol

    Definition Classes
    HttpParameters
  76. val proxyServerId: String

    Server ID for proxy credentials defined in maven settings

    Server ID for proxy credentials defined in maven settings

    Definition Classes
    HttpParameters
  77. val proxySet: Boolean

    Set to true to override the proxy configuration in the user's Maven Settings with the associated mojo parameter alternatives

    Set to true to override the proxy configuration in the user's Maven Settings with the associated mojo parameter alternatives

    Definition Classes
    HttpParameters
  78. val proxyUsername: String

    The HTTP Proxy username

    The HTTP Proxy username

    Definition Classes
    HttpParameters
  79. def putBundleToPath(symbolicName: String, file: File, path: String): Either[Throwable, List[String]]

    Definition Classes
    UploadsBundles
  80. def putTestBundle(symbolicName: String, file: File): Either[Throwable, List[String]]

    Puts the specified file to the configured test bundle install location

    Puts the specified file to the configured test bundle install location

    file

    file to put

    returns

    either log messages or a throwable

    Definition Classes
    UploadsBundles
  81. val recursive: Boolean

    Set to false to not install any subpackages that might be embedded within each dependency

    Set to false to not install any subpackages that might be embedded within each dependency

    Definition Classes
    UploadsPackages
  82. lazy val repositoryRequest: RepositoryRequest

    Definition Classes
    ResolvesArtifacts
  83. var repositorySystem: RepositorySystem

    Definition Classes
    ResolvesArtifacts
  84. def resolveArtifacts(artifacts: Stream[Artifact]): Stream[Artifact]

    Definition Classes
    ResolvesArtifacts
  85. def resolveByArtifactIds(artifactIds: Set[String]): Stream[Artifact]

    Definition Classes
    ResolvesArtifacts
  86. def resolveByCoordinates(groupId: String, artifactId: String, version: String, artifactType: String, classifier: String): Option[Artifact]

    Definition Classes
    ResolvesArtifacts
  87. def resolveByCoordinates(coordinates: String): Option[Artifact]

    Definition Classes
    ResolvesArtifacts
  88. def resolveByFilter(filter: String): Stream[Artifact]

    Definition Classes
    ResolvesArtifacts
  89. var securityDispatcher: SecDispatcher

    Definition Classes
    HttpParameters
  90. val serverId: String

    Id of server defined in the maven settings to use for credentials

    Id of server defined in the maven settings to use for credentials

    Definition Classes
    HttpParameters
  91. lazy val servicePath: String

    Definition Classes
    UploadsPackages
  92. val serviceTimeout: Int

    Set the timeout used for waiting for Package Manager service availability before sending any POST requests.

    Set the timeout used for waiting for Package Manager service availability before sending any POST requests. The wait is to avoid creating dummy nodes in the repository when the SlingPostServlet handles premature package manager requests, which can confuse the link rewriter and mess up links to the package manager console.

    Definition Classes
    UploadsPackages
  93. var session: MavenSession

    Definition Classes
    BaseMojo
  94. def setLog(arg0: Log): Unit

    Definition Classes
    AbstractMojo → Mojo
  95. def setPluginContext(arg0: Map[_, _]): Unit

    Definition Classes
    AbstractMojo → ContextEnabled
  96. var settings: Settings

    Definition Classes
    BaseMojo
  97. val skip: Boolean

    Set to true to skip execution of this mojo

  98. val skipITs: Boolean

    By convention, this parameter is used to disable execution of the maven-failsafe-plugin.

    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.

    Definition Classes
    BaseITMojo
  99. var skipMkdirs: Boolean

    Set to true to skip the use of the MKCOL WebDAV method for the creation ancestor JCR paths

    Set to true to skip the use of the MKCOL WebDAV method for the creation ancestor JCR paths

    Definition Classes
    HttpParameters
  100. def skipOrExecute(skip: Boolean)(body: ⇒ Unit): Unit

    Definition Classes
    BaseITMojoBaseMojo
  101. val skipTests: Boolean

    By convention, this parameter is used to disable execution of maven-surefire-plugin-derived goals.

    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.

    Definition Classes
    BaseITMojo
  102. def skipWithTestsOrExecute(skip: Boolean)(body: ⇒ Unit): Unit

    Definition Classes
    BaseITMojo
  103. val startLevel: Int

    Specify the OSGi start level of the bundle

    Specify the OSGi start level of the bundle

    Definition Classes
    UploadsBundles
  104. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  105. lazy val targetFile: File

    target content-package file

    target content-package file

    Definition Classes
    OutputParameters
  106. def testBundleArtifacts: Stream[Artifact]

  107. var testBundlePathPrefix: String

    Set the request path prefix under which test bundles will be installed (an "/install/" segment will be appended to this value and if usePut is set to true then the start level will be appended to that.

    Set the request path prefix under which test bundles will be installed (an "/install/" segment will be appended to this value and if usePut is set to true then the start level will be appended to that.

    Definition Classes
    UploadsBundles
  108. var testBundles: List[String]

    List of artifactIds matching OSGi bundle dependencies

  109. def testPackageArtifacts: Stream[Artifact]

  110. var testPackages: List[String]

    List of artifactIds matching test package dependencies

  111. def toString(): String

    Definition Classes
    AnyRef → Any
  112. lazy val uploadDirectory: File

    Definition Classes
    OutputParameters
  113. def uploadPackage(packageId: Option[PackageId], file: File, force: Boolean): Either[Throwable, (Boolean, String)]

    Definition Classes
    UploadsPackages
  114. def uploadPackageArtifact(artifact: Artifact)(implicit force: Boolean): Unit

    Definition Classes
    UploadsPackages
  115. def uploadPackageFile(file: File)(implicit force: Boolean): Unit

    Definition Classes
    UploadsPackages
  116. lazy val uploadSha: File

    Definition Classes
    OutputParameters
  117. lazy val uploadSlingJunitDirectory: File

    Definition Classes
    OutputParameters
  118. lazy val uploadSlingJunitSha: File

    Definition Classes
    OutputParameters
  119. def uploadTestBundle(file: File): Either[Throwable, List[String]]

    Definition Classes
    UploadsBundles
  120. lazy val uploadTestsChecksum: String

  121. lazy val uploadTestsDirectory: File

    Definition Classes
    OutputParameters
  122. lazy val uploadTestsSha: File

    Definition Classes
    OutputParameters
  123. def urlForPath(absPath: String): Req

    Definition Classes
    HttpParameters
  124. val usePut: Boolean

    Use a PUT request instead of a POST request

    Use a PUT request instead of a POST request

    Definition Classes
    UploadsBundles
  125. val username: String

    Specify the CQ username associated with package creation and installation

    Specify the CQ username associated with package creation and installation

    Definition Classes
    HttpParameters
  126. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  127. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  128. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  129. final def waitForResponse[T](nTrys: Int)(implicit until: Long, requestFunction: () ⇒ (Request, AsyncHandler[T]), contentChecker: (Future[T]) ⇒ Future[Boolean]): Boolean

    Definition Classes
    HttpParameters
    Annotations
    @tailrec()
  130. def waitForService(thenDo: ⇒ Either[Throwable, (Boolean, String)]): Either[Throwable, (Boolean, String)]

    wrap package manager service POST requests with this function to first check for service availability, which is interpreted by expecting a GET response of 405 (Method not allowed)

    wrap package manager service POST requests with this function to first check for service availability, which is interpreted by expecting a GET response of 405 (Method not allowed)

    thenDo
    returns

    Definition Classes
    UploadsPackages

Inherited from UploadsBundles

Inherited from UploadsPackages

Inherited from IdentifiesPackages

Inherited from HttpParameters

Inherited from OutputParameters

Inherited from ResolvesArtifacts

Inherited from BaseITMojo

Inherited from RequiresProject

Inherited from BaseMojo

Inherited from AbstractMojo

Inherited from ContextEnabled

Inherited from Mojo

Inherited from AnyRef

Inherited from Any

Ungrouped