com.atlassian.maven.plugins.testharness
Class StartConfluenceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.atlassian.maven.plugins.testharness.AbstractStartServiceMojo
          extended by com.atlassian.maven.plugins.testharness.AbstractStartCargoServiceMojo
              extended by com.atlassian.maven.plugins.testharness.StartConfluenceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class StartConfluenceMojo
extends AbstractStartCargoServiceMojo

starts confluence in a Container using cargo to support integration tests


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
StartConfluenceMojo()
           
 
Method Summary
protected  void configureWebapp()
          Does pre-deployment of container config
protected  java.lang.String[] getExtraClassPathElements()
          set of strings that will be added to the classpath for the application Container
 java.lang.String getServiceName()
           
protected  java.util.Map getSystemProperties()
          system properties to be set on the application Container
protected  void installThisArtifact()
           
protected  void removeConflictingJars()
          Remove jar files from WEB-INF/lib based on configuration.
 
Methods inherited from class com.atlassian.maven.plugins.testharness.AbstractStartCargoServiceMojo
installDependencies, startContainer
 
Methods inherited from class com.atlassian.maven.plugins.testharness.AbstractStartServiceMojo
copyDependenciesTo, execute, expandArtifact, getApplicationDependencies, getContainer, getContainerOutputLog, getDefaultServiceDirectory, getDependencyUtils, getLocalRepository, getProject, getRegexesOfJarFilesToRemove, getRemoteRepositories, getService, getServiceConfigDirectory, getServiceWebappDirectory, loadDependencyList, projectHasInstallableArtifact, resolveDependencies, setContainer, setDependencyUtils, setLocalRepository, setProject, setRemoteRepositories, setService
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartConfluenceMojo

public StartConfluenceMojo()
Method Detail

getServiceName

public java.lang.String getServiceName()
Specified by:
getServiceName in class AbstractStartServiceMojo

configureWebapp

protected void configureWebapp()
                        throws org.apache.maven.plugin.MojoExecutionException
Description copied from class: AbstractStartServiceMojo
Does pre-deployment of container config

Specified by:
configureWebapp in class AbstractStartServiceMojo
Throws:
org.apache.maven.plugin.MojoExecutionException - if an error occurs configuring the webapp

removeConflictingJars

protected void removeConflictingJars()
                              throws org.apache.maven.plugin.MojoExecutionException
Description copied from class: AbstractStartCargoServiceMojo
Remove jar files from WEB-INF/lib based on configuration.

Overrides:
removeConflictingJars in class AbstractStartCargoServiceMojo
Throws:
org.apache.maven.plugin.MojoExecutionException - Throw if there are any errors removing existing dependencies.

installThisArtifact

protected void installThisArtifact()
                            throws org.apache.maven.plugin.MojoExecutionException
Overrides:
installThisArtifact in class AbstractStartCargoServiceMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

getSystemProperties

protected java.util.Map getSystemProperties()
system properties to be set on the application Container

Specified by:
getSystemProperties in class AbstractStartCargoServiceMojo
Returns:

getExtraClassPathElements

protected java.lang.String[] getExtraClassPathElements()
set of strings that will be added to the classpath for the application Container

Specified by:
getExtraClassPathElements in class AbstractStartCargoServiceMojo
Returns:


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.