org.apache.openejb.maven.plugin
Class AbstractTomEEMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.openejb.maven.plugin.AbstractAddressMojo
          extended by org.apache.openejb.maven.plugin.AbstractTomEEMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
BuildTomEEMojo, ConfigTestTomEEMojo, StopTomEEMojo, UpdatableTomEEMojo

public abstract class AbstractTomEEMojo
extends AbstractAddressMojo


Field Summary
protected  String apacheRepos
           
protected  String appDir
          relative to tomee.base.
protected  List<String> apps
           
protected  String args
           
protected  File bin
           
protected  File catalinaBase
           
protected  File config
           
protected  boolean debug
           
protected  int debugPort
           
protected  File deployedFile
           
protected  boolean deployOpenEjbApplication
           
protected  org.apache.maven.artifact.factory.ArtifactFactory factory
           
protected  boolean forceReloadable
           
protected  boolean keepServerXmlAsthis
           
protected  File lib
           
protected  String libDir
          relative to tomee.base.
protected  List<String> libs
          supported formats: --> groupId:artifactId:version...
protected  org.apache.maven.artifact.repository.ArtifactRepository local
           
protected  String packaging
           
protected  List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos
           
protected  boolean removeDefaultWebapps
           
protected  boolean removeTomeeWebapp
           
protected  org.apache.maven.artifact.resolver.ArtifactResolver resolver
           
protected  org.apache.maven.settings.Settings settings
          The current user system settings for use in Maven.
protected  boolean simpleLog
           
protected  boolean skipCurrentProject
           
protected  Map<String,String> systemVariables
           
protected  int tomeeAjpPort
           
protected  String tomeeArtifactId
           
protected  String tomeeClassifier
           
protected  String tomeeGroupId
           
protected  Integer tomeeHttpsPort
           
protected  int tomeeShutdownPort
           
protected  String tomeeType
          while tar.gz is not managed it is readonly
protected  String tomeeVersion
           
protected  File warFile
           
protected  String webappDir
          relative to tomee.base.
protected  List<String> webapps
           
 
Fields inherited from class org.apache.openejb.maven.plugin.AbstractAddressMojo
password, realm, tomeeHost, tomeeHttpPort, user
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractTomEEMojo()
           
 
Method Summary
protected  void addShutdownHooks(RemoteServer server)
           
protected  String cp()
           
 void execute()
           
abstract  String getCmd()
           
protected  int getConnectAttempts()
           
protected  boolean getWaitTomEE()
           
protected  void run()
           
protected  void serverCmd(RemoteServer server, List<String> strings)
           
 
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
 

Field Detail

factory

@Component
protected org.apache.maven.artifact.factory.ArtifactFactory factory

resolver

@Component
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver

local

@Parameter(defaultValue="${localRepository}",
           readonly=true)
protected org.apache.maven.artifact.repository.ArtifactRepository local

remoteRepos

@Parameter(defaultValue="${project.remoteArtifactRepositories}",
           readonly=true)
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos

skipCurrentProject

@Parameter(property="tomee-plugin.skipCurrentProject",
           defaultValue="false")
protected boolean skipCurrentProject

tomeeVersion

@Parameter(property="tomee-plugin.version",
           defaultValue="-1")
protected String tomeeVersion

tomeeGroupId

@Parameter(property="tomee-plugin.groupId",
           defaultValue="org.apache.openejb")
protected String tomeeGroupId

tomeeArtifactId

@Parameter(property="tomee-plugin.artifactId",
           defaultValue="apache-tomee")
protected String tomeeArtifactId

tomeeType

@Parameter(property="tomee-plugin.type",
           defaultValue="zip",
           readonly=true)
protected String tomeeType
while tar.gz is not managed it is readonly


apacheRepos

@Parameter(property="tomee-plugin.apache-repos",
           defaultValue="snapshots")
protected String apacheRepos

tomeeClassifier

@Parameter(property="tomee-plugin.classifier",
           defaultValue="webprofile")
protected String tomeeClassifier

tomeeShutdownPort

@Parameter(property="tomee-plugin.shutdown",
           defaultValue="8005")
protected int tomeeShutdownPort

tomeeAjpPort

@Parameter(property="tomee-plugin.ajp",
           defaultValue="8009")
protected int tomeeAjpPort

tomeeHttpsPort

@Parameter(property="tomee-plugin.https")
protected Integer tomeeHttpsPort

args

@Parameter(property="tomee-plugin.args")
protected String args

debug

@Parameter(property="tomee-plugin.debug",
           defaultValue="false")
protected boolean debug

simpleLog

@Parameter(property="tomee-plugin.simple-log",
           defaultValue="false")
protected boolean simpleLog

debugPort

@Parameter(property="tomee-plugin.debugPort",
           defaultValue="5005")
protected int debugPort

catalinaBase

@Parameter(defaultValue="${project.build.directory}/apache-tomee")
protected File catalinaBase

webappDir

@Parameter(defaultValue="webapps")
protected String webappDir
relative to tomee.base.


appDir

@Parameter(defaultValue="apps")
protected String appDir
relative to tomee.base.


libDir

@Parameter(defaultValue="lib")
protected String libDir
relative to tomee.base.


config

@Parameter(property="tomee-plugin.conf",
           defaultValue="${project.basedir}/src/main/tomee/conf")
protected File config

bin

@Parameter(property="tomee-plugin.bin",
           defaultValue="${project.basedir}/src/main/tomee/bin")
protected File bin

lib

@Parameter(property="tomee-plugin.lib",
           defaultValue="${project.basedir}/src/main/tomee/lib")
protected File lib

systemVariables

@Parameter
protected Map<String,String> systemVariables

forceReloadable

@Parameter(property="tomee-plugin.force-reloadable",
           defaultValue="false")
protected boolean forceReloadable

libs

@Parameter
protected List<String> libs
supported formats: --> groupId:artifactId:version... --> unzip:groupId:artifactId:version... --> remove:prefix (often prefix = artifactId)


webapps

@Parameter
protected List<String> webapps

apps

@Parameter
protected List<String> apps

warFile

@Parameter(defaultValue="${project.build.directory}/${project.build.finalName}.${project.packaging}")
protected File warFile

removeDefaultWebapps

@Parameter(property="tomee-plugin.remove-default-webapps",
           defaultValue="true")
protected boolean removeDefaultWebapps

deployOpenEjbApplication

@Parameter(property="tomee-plugin.deploy-openejb-internal-application",
           defaultValue="false")
protected boolean deployOpenEjbApplication

removeTomeeWebapp

@Parameter(property="tomee-plugin.remove-tomee-webapps",
           defaultValue="false")
protected boolean removeTomeeWebapp

packaging

@Parameter(defaultValue="${project.packaging}",
           readonly=true)
protected String packaging

keepServerXmlAsthis

@Parameter(property="tomee-plugin.keep-server-xml",
           defaultValue="false")
protected boolean keepServerXmlAsthis

settings

@Parameter(defaultValue="${settings}",
           readonly=true)
protected org.apache.maven.settings.Settings settings
The current user system settings for use in Maven.


deployedFile

protected File deployedFile
Constructor Detail

AbstractTomEEMojo

public AbstractTomEEMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

run

protected void run()

serverCmd

protected void serverCmd(RemoteServer server,
                         List<String> strings)

addShutdownHooks

protected void addShutdownHooks(RemoteServer server)

getConnectAttempts

protected int getConnectAttempts()

getWaitTomEE

protected boolean getWaitTomEE()

cp

protected String cp()

getCmd

public abstract String getCmd()


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.