com.atlassian.maven.plugins.testharness
Class StartJiraMojo

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.StartJiraMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class StartJiraMojo
extends AbstractStartCargoServiceMojo

starts jira in a Container using cargo to support integration tests


Field Summary
 
Fields inherited from class com.atlassian.maven.plugins.testharness.AbstractStartServiceMojo
WEB_APP_LIB_DIR
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
StartJiraMojo()
           
 
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()
           
 java.util.Map getSystemProperties()
          System properties to be set on the application Container.
protected  void installThisArtifact()
           
protected  void installThisArtifactsDependencies()
          Install the project's dependencies into the application's WEB-INF/lib directory
 
Methods inherited from class com.atlassian.maven.plugins.testharness.AbstractStartCargoServiceMojo
installDependencies, removeConflictingJars, 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, 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

StartJiraMojo

public StartJiraMojo()
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

getSystemProperties

public java.util.Map getSystemProperties()
System properties to be set on the application Container.

Specified by:
getSystemProperties in class AbstractStartCargoServiceMojo
Returns:
A Map of the system properties.

getExtraClassPathElements

protected java.lang.String[] getExtraClassPathElements()
                                                throws org.apache.maven.artifact.resolver.AbstractArtifactResolutionException,
                                                       org.apache.maven.project.artifact.InvalidDependencyVersionException
set of strings that will be added to the classpath for the application Container

Specified by:
getExtraClassPathElements in class AbstractStartCargoServiceMojo
Throws:
org.apache.maven.artifact.resolver.AbstractArtifactResolutionException
org.apache.maven.project.artifact.InvalidDependencyVersionException

installThisArtifactsDependencies

protected void installThisArtifactsDependencies()
                                         throws org.apache.maven.plugin.MojoExecutionException
Description copied from class: AbstractStartServiceMojo
Install the project's dependencies into the application's WEB-INF/lib directory

Overrides:
installThisArtifactsDependencies in class AbstractStartServiceMojo
Throws:
org.apache.maven.plugin.MojoExecutionException - Thrown if an IO error occurs.

installThisArtifact

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


Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.