public abstract class AbstractTomEEMojo extends AbstractAddressMojo
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractTomEEMojo.Resolver
The interface Resolver.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
apacheRepos
The Apache repos.
|
protected java.lang.String |
appDir
relative to tomee.base.
|
protected java.util.List<java.lang.String> |
apps
The Apps.
|
protected java.lang.String |
args
The Args.
|
protected java.lang.String |
artifactId
The Artifact id.
|
protected java.io.File |
bin
The Bin.
|
protected java.io.File |
catalinaBase
The Catalina base.
|
protected boolean |
checkStarted
The Check started.
|
protected int |
checkStartedAttempts
The amount of attempts to check if the container is started.
|
protected java.io.File |
classes
The Classes.
|
protected java.util.List<java.lang.String> |
classpaths
The Classpaths.
|
protected java.lang.String |
classpathSeparator
The Classpath separator.
|
protected java.io.File |
config
The Config.
|
protected java.lang.String |
container
The Container.
|
protected java.lang.String |
context
rename the current artifact
|
protected java.util.List<java.lang.String> |
customizers
The Customizers.
|
protected boolean |
debug
The Debug.
|
protected int |
debugPort
The Debug port.
|
protected java.io.File |
deployedFile
The Deployed file.
|
protected boolean |
deployOpenEjbApplication
The Deploy open ejb application.
|
protected java.util.List<java.io.File> |
docBases
for TomEE and wars only, which docBase to use for this war.
|
protected boolean |
ejbRemote
The Ejb remote.
|
protected java.util.List<java.lang.String> |
endorsedLibs
The Endorsed libs.
|
static java.lang.String |
EXIT_CMD
The constant EXIT_CMD.
|
protected java.util.List<java.io.File> |
externalRepositories
for TomEE and wars only, add some external repositories to classloader.
|
protected boolean |
extractWars
The Extract wars.
|
protected ArtifactFactory |
factory
The Factory.
|
protected java.lang.String |
finalName
The Final name.
|
protected boolean |
forceJspDevelopment
force webapp to be reloadable
|
protected boolean |
forceReloadable
force webapp to be reloadable
|
protected java.util.List<java.lang.String> |
groovyCustomizers
The Groovy customizers.
|
protected PlexusConfiguration |
inlinedServerXml
server.xml configured inlined (is Server tag is the first child of inlinedServerXml)
|
protected PlexusConfiguration |
inlinedTomEEXml
tomee.xml configured inlined (is tomee tag is the first child of inlinedTomEEXml)
|
protected java.util.List<java.lang.String> |
javaagents
The Javaagents.
|
protected java.util.List<java.lang.String> |
jsCustomizers
The Js customizers.
|
protected java.lang.String |
keystore
the actual path used in server.xml for the https keystore if relevant.
|
protected java.io.File |
lib
The Lib.
|
protected java.lang.String |
libDir
relative to tomee.base.
|
protected java.util.List<java.lang.String> |
libs
supported formats:
--> groupId:artifactId:version...
|
protected ArtifactRepository |
local
The Local.
|
protected java.io.File |
mainDir
The Main dir.
|
protected boolean |
overrideOnUnzip
if a file is already there when unpacking tomee zip should it be overriden?
|
protected java.lang.String |
packaging
The Packaging.
|
protected boolean |
persistJavaagents
The Persist javaagents.
|
protected MavenProject |
project
The Project.
|
protected boolean |
quickSession
use a real random instead of secure random.
|
static java.lang.String |
QUIT_CMD
The constant QUIT_CMD.
|
protected java.util.List<ArtifactRepository> |
remoteRepos
The Remote repos.
|
protected boolean |
removeDefaultWebapps
The Remove default webapps.
|
protected boolean |
removeTomeeWebapp
The Remove tomee webapp.
|
protected ArtifactResolver |
resolver
The Resolver.
|
protected RemoteServer |
server
The Server.
|
protected Settings |
settings
The current user system settings for use in Maven.
|
protected boolean |
simpleLog
The Simple log.
|
protected boolean |
skipCurrentProject
The Skip current project.
|
protected boolean |
skipRootFolderOnUnzip
if a file is already there when unpacking tomee zip should it be overriden?
|
protected boolean |
stripVersion
The Strip version.
|
protected boolean |
stripWarVersion
The Strip war version.
|
protected java.util.Map<java.lang.String,java.lang.String> |
systemVariables
The System variables.
|
protected java.io.File |
target
The Target.
|
static java.lang.String |
TOM_EE
The constant TOM_EE.
|
protected java.lang.String |
tomeeAjpPort
The TomEE ajp port.
|
protected boolean |
tomeeAlreadyInstalled
The TomEE already installed.
|
protected java.lang.String |
tomeeArtifactId
The TomEE artifact id.
|
protected java.lang.String |
tomeeClassifier
tomee classifier to use (webprofile or plus)
|
protected java.lang.String |
tomeeGroupId
The TomEE group id.
|
protected int |
tomeeShutdownAttempts
The TomEE shutdown attempts.
|
protected java.lang.String |
tomeeShutdownCommand
The TomEE shutdown command.
|
protected java.lang.String |
tomeeShutdownPort
The TomEE shutdown port.
|
protected java.lang.String |
tomeeType
while tar.gz is not managed it is readonly
|
protected java.lang.String |
tomeeVersion
The TomEE version.
|
protected boolean |
useConsole
The Use console.
|
protected boolean |
useOpenEJB
use openejb-standalone automatically instead of TomEE
|
protected java.io.File |
warFile
The War file.
|
protected java.io.File |
webappClasses
The Webapp classes.
|
protected boolean |
webappDefaultConfig
forcing nice default for war development (WEB-INF/classes and web resources)
|
protected java.lang.String |
webappDir
relative to tomee.base.
|
protected java.io.File |
webappResources
The Webapp resources.
|
protected java.util.List<java.lang.String> |
webapps
The Webapps.
|
protected java.io.File |
workWarFile
The Work war file.
|
password, realm, tomeeHost, tomeeHttpPort, tomeeHttpsPort, user
Constructor and Description |
---|
AbstractTomEEMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addShutdownHooks(RemoteServer server)
Add shutdown hooks.
|
protected java.util.Collection<java.lang.String> |
availableCommands()
Available commands collection.
|
protected java.lang.String |
destinationName()
Destination name string.
|
void |
execute() |
protected void |
fixConfig()
Fix config.
|
protected java.util.List<java.lang.String> |
generateJVMArgs()
Generate jvm args list.
|
protected java.lang.String |
getAdditionalClasspath()
Gets additional classpath.
|
abstract java.lang.String |
getCmd()
Gets cmd.
|
protected int |
getConnectAttempts()
Gets connect attempts.
|
protected boolean |
getWaitTomEE()
Gets wait TomEE.
|
protected boolean |
handleLine(java.lang.String line)
Handle line boolean.
|
protected void |
run()
Run.
|
protected void |
serverCmd(RemoteServer server,
java.util.List<java.lang.String> strings)
Server cmd.
|
protected void |
stopServer(java.util.concurrent.CountDownLatch stopCondition)
Stop server.
|
public static final java.lang.String QUIT_CMD
public static final java.lang.String EXIT_CMD
public static final java.lang.String TOM_EE
protected ArtifactFactory factory
protected ArtifactResolver resolver
protected ArtifactRepository local
protected java.util.List<ArtifactRepository> remoteRepos
protected boolean skipCurrentProject
protected java.lang.String tomeeVersion
protected java.lang.String tomeeGroupId
protected java.lang.String tomeeArtifactId
protected java.lang.String tomeeType
protected java.lang.String apacheRepos
protected java.lang.String tomeeClassifier
protected java.lang.String tomeeShutdownPort
protected int tomeeShutdownAttempts
protected java.lang.String tomeeShutdownCommand
protected java.lang.String tomeeAjpPort
protected java.lang.String args
protected boolean debug
protected boolean simpleLog
protected boolean extractWars
protected boolean stripWarVersion
protected boolean stripVersion
protected int debugPort
protected java.io.File webappResources
protected java.io.File webappClasses
protected java.io.File catalinaBase
protected java.lang.String context
protected java.lang.String webappDir
protected java.lang.String appDir
protected java.lang.String libDir
protected java.io.File mainDir
protected java.io.File target
protected java.io.File config
protected java.io.File bin
protected java.io.File lib
protected java.util.Map<java.lang.String,java.lang.String> systemVariables
protected java.util.List<java.lang.String> classpaths
protected java.lang.String classpathSeparator
protected java.util.List<java.lang.String> customizers
protected java.util.List<java.lang.String> jsCustomizers
protected java.util.List<java.lang.String> groovyCustomizers
protected MavenProject project
protected boolean webappDefaultConfig
protected boolean quickSession
protected boolean forceReloadable
protected boolean forceJspDevelopment
protected java.util.List<java.lang.String> libs
protected java.util.List<java.lang.String> endorsedLibs
protected java.util.List<java.lang.String> javaagents
protected boolean persistJavaagents
protected java.util.List<java.lang.String> webapps
protected java.util.List<java.lang.String> apps
protected java.io.File classes
protected java.io.File warFile
protected java.io.File workWarFile
protected java.lang.String finalName
protected java.lang.String artifactId
protected boolean removeDefaultWebapps
protected boolean deployOpenEjbApplication
protected boolean removeTomeeWebapp
protected boolean ejbRemote
protected java.lang.String packaging
protected boolean checkStarted
protected int checkStartedAttempts
protected boolean useConsole
protected boolean tomeeAlreadyInstalled
protected Settings settings
protected boolean useOpenEJB
protected java.util.List<java.io.File> docBases
protected java.util.List<java.io.File> externalRepositories
protected PlexusConfiguration inlinedServerXml
protected PlexusConfiguration inlinedTomEEXml
protected boolean overrideOnUnzip
protected boolean skipRootFolderOnUnzip
protected java.lang.String keystore
protected java.io.File deployedFile
protected RemoteServer server
protected java.lang.String container
public void execute() throws MojoExecutionException, MojoFailureException
MojoExecutionException
MojoFailureException
protected void fixConfig()
protected java.lang.String getAdditionalClasspath()
protected java.lang.String destinationName()
protected void run()
protected java.util.List<java.lang.String> generateJVMArgs()
protected java.util.Collection<java.lang.String> availableCommands()
protected void stopServer(java.util.concurrent.CountDownLatch stopCondition)
stopCondition
- the stop conditionprotected boolean handleLine(java.lang.String line)
line
- the lineprotected void serverCmd(RemoteServer server, java.util.List<java.lang.String> strings)
server
- the serverstrings
- the stringsprotected void addShutdownHooks(RemoteServer server)
server
- the serverprotected int getConnectAttempts()
protected boolean getWaitTomEE()
public abstract java.lang.String getCmd()