public abstract class AbstractTomEEMojo extends AbstractAddressMojo
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractTomEEMojo.Resolver |
| Modifier and Type | Field and Description |
|---|---|
protected String |
apacheRepos |
protected String |
appDir
relative to tomee.base.
|
protected List<String> |
apps |
protected String |
args |
protected String |
artifactId |
protected File |
bin |
protected File |
catalinaBase |
protected boolean |
checkStarted |
protected File |
classes |
protected List<String> |
classpaths |
protected File |
config |
protected String |
container |
protected String |
context
rename the current artifact
|
protected List<String> |
customizers |
protected boolean |
debug |
protected int |
debugPort |
protected File |
deployedFile |
protected boolean |
deployOpenEjbApplication |
protected List<File> |
docBases
for TomEE and wars only, which docBase to use for this war.
|
protected boolean |
ejbRemote |
protected List<String> |
endorsedLibs |
static String |
EXIT_CMD |
protected List<File> |
externalRepositories
for TomEE and wars only, add some external repositories to classloader.
|
protected boolean |
extractWars |
protected org.apache.maven.artifact.factory.ArtifactFactory |
factory |
protected String |
finalName |
protected boolean |
forceJspDevelopment
force webapp to be reloadable
|
protected boolean |
forceReloadable
force webapp to be reloadable
|
protected List<String> |
groovyCustomizers |
protected org.codehaus.plexus.configuration.PlexusConfiguration |
inlinedServerXml
server.xml configured inlined (is Server tag is the first child of inlinedServerXml)
|
protected org.codehaus.plexus.configuration.PlexusConfiguration |
inlinedTomEEXml
tomee.xml configured inlined (is tomee tag is the first child of inlinedTomEEXml)
|
protected List<String> |
javaagents |
protected List<String> |
jsCustomizers |
protected String |
keystore
the actual path used in server.xml for the https keystore if relevant.
|
protected File |
lib |
protected String |
libDir
relative to tomee.base.
|
protected List<String> |
libs
supported formats:
--> groupId:artifactId:version...
--> unzip:groupId:artifactId:version...
--> remove:prefix (often prefix = artifactId)
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
local |
protected File |
mainDir |
protected boolean |
overrideOnUnzip
if a file is already there when unpacking tomee zip should it be overriden?
|
protected String |
packaging |
protected boolean |
persistJavaagents |
protected org.apache.maven.project.MavenProject |
project |
protected boolean |
quickSession
use a real random instead of secure random. saves few ms at startup.
|
static String |
QUIT_CMD |
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteRepos |
protected boolean |
removeDefaultWebapps |
protected boolean |
removeTomeeWebapp |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver |
protected RemoteServer |
server |
protected org.apache.maven.settings.Settings |
settings
The current user system settings for use in Maven.
|
protected boolean |
simpleLog |
protected boolean |
skipCurrentProject |
protected boolean |
skipRootFolderOnUnzip
if a file is already there when unpacking tomee zip should it be overriden?
|
protected boolean |
stripVersion |
protected boolean |
stripWarVersion |
protected Map<String,String> |
systemVariables |
protected File |
target |
static String |
TOM_EE |
protected String |
tomeeAjpPort |
protected boolean |
tomeeAlreadyInstalled |
protected String |
tomeeArtifactId |
protected String |
tomeeClassifier
tomee classifier to use (webprofile or plus)
|
protected String |
tomeeGroupId |
protected int |
tomeeShutdownAttempts |
protected String |
tomeeShutdownCommand |
protected String |
tomeeShutdownPort |
protected String |
tomeeType
while tar.gz is not managed it is readonly
|
protected String |
tomeeVersion |
protected boolean |
useConsole |
protected boolean |
useOpenEJB
use openejb-standalone automatically instead of TomEE
|
protected File |
warFile |
protected File |
webappClasses |
protected boolean |
webappDefaultConfig
forcing nice default for war development (WEB-INF/classes and web resources)
|
protected String |
webappDir
relative to tomee.base.
|
protected File |
webappResources |
protected List<String> |
webapps |
protected File |
workWarFile |
password, realm, tomeeHost, tomeeHttpPort, tomeeHttpsPort, user| Constructor and Description |
|---|
AbstractTomEEMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addShutdownHooks(RemoteServer server) |
protected Collection<String> |
availableCommands() |
protected String |
destinationName() |
void |
execute() |
protected void |
fixConfig() |
protected List<String> |
generateJVMArgs() |
protected String |
getAdditionalClasspath() |
abstract String |
getCmd() |
protected int |
getConnectAttempts() |
protected boolean |
getWaitTomEE() |
protected boolean |
handleLine(String line) |
protected void |
run() |
protected void |
serverCmd(RemoteServer server,
List<String> strings) |
protected void |
stopServer(CountDownLatch stopCondition) |
public static final String QUIT_CMD
public static final String EXIT_CMD
public static final String TOM_EE
@Component protected org.apache.maven.artifact.factory.ArtifactFactory factory
@Component protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
@Parameter(defaultValue="${localRepository}",
readonly=true)
protected org.apache.maven.artifact.repository.ArtifactRepository local
@Parameter(defaultValue="${project.remoteArtifactRepositories}",
readonly=true)
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos
@Parameter(property="tomee-plugin.skipCurrentProject",
defaultValue="false")
protected boolean skipCurrentProject
@Parameter(property="tomee-plugin.version",
defaultValue="-1")
protected String tomeeVersion
@Parameter(property="tomee-plugin.groupId",
defaultValue="org.apache.tomee")
protected String tomeeGroupId
@Parameter(property="tomee-plugin.artifactId",
defaultValue="apache-tomee")
protected String tomeeArtifactId
@Parameter(property="tomee-plugin.type",
defaultValue="zip",
readonly=true)
protected String tomeeType
@Parameter(property="tomee-plugin.apache-repos",
defaultValue="snapshots")
protected String apacheRepos
@Parameter(property="tomee-plugin.classifier",
defaultValue="webprofile")
protected String tomeeClassifier
@Parameter(property="tomee-plugin.shutdown") protected String tomeeShutdownPort
@Parameter(property="tomee-plugin.shutdown.attempts",
defaultValue="60")
protected int tomeeShutdownAttempts
@Parameter(property="tomee-plugin.shutdown-command",
defaultValue="SHUTDOWN")
protected String tomeeShutdownCommand
@Parameter(property="tomee-plugin.ajp") protected String tomeeAjpPort
@Parameter(property="tomee-plugin.args") protected String args
@Parameter(property="tomee-plugin.debug",
defaultValue="false")
protected boolean debug
@Parameter(property="tomee-plugin.simple-log",
defaultValue="false")
protected boolean simpleLog
@Parameter(property="tomee-plugin.extractWars",
defaultValue="false")
protected boolean extractWars
@Parameter(property="tomee-plugin.stripWarVersion",
defaultValue="true")
protected boolean stripWarVersion
@Parameter(property="tomee-plugin.stripVersion",
defaultValue="false")
protected boolean stripVersion
@Parameter(property="tomee-plugin.debugPort",
defaultValue="5005")
protected int debugPort
@Parameter(defaultValue="${project.basedir}/src/main/webapp",
property="tomee-plugin.webappResources")
protected File webappResources
@Parameter(defaultValue="${project.build.outputDirectory}",
property="tomee-plugin.webappClasses")
protected File webappClasses
@Parameter(defaultValue="${project.build.directory}/apache-tomee",
property="tomee-plugin.catalina-base")
protected File catalinaBase
@Parameter protected String context
@Parameter protected String webappDir
@Parameter(defaultValue="apps") protected String appDir
@Parameter(defaultValue="lib") protected String libDir
@Parameter(defaultValue="${project.basedir}/src/main")
protected File mainDir
@Parameter(defaultValue="${project.build.directory}")
protected File target
@Parameter(property="tomee-plugin.conf",
defaultValue="${project.basedir}/src/main/tomee/conf")
protected File config
@Parameter(property="tomee-plugin.bin",
defaultValue="${project.basedir}/src/main/tomee/bin")
protected File bin
@Parameter(property="tomee-plugin.lib",
defaultValue="${project.basedir}/src/main/tomee/lib")
protected File lib
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
@Parameter(property="tomee-plugin.webappDefaultConfig",
defaultValue="false")
protected boolean webappDefaultConfig
@Parameter(property="tomee-plugin.quick-session",
defaultValue="true")
protected boolean quickSession
@Parameter(property="tomee-plugin.force-reloadable",
defaultValue="false")
protected boolean forceReloadable
@Parameter(property="tomee-plugin.jsp-development",
defaultValue="true")
protected boolean forceJspDevelopment
@Parameter protected List<String> libs
@Parameter(property="tomee-plugin.persist-javaagents",
defaultValue="false")
protected boolean persistJavaagents
@Parameter(property="tomee-plugin.classes",
defaultValue="${project.build.outputDirectory}",
readonly=true)
protected File classes
@Parameter(defaultValue="${project.build.directory}/${project.build.finalName}.${project.packaging}")
protected File warFile
@Parameter(defaultValue="${project.build.directory}/${project.build.finalName}",
readonly=true)
protected File workWarFile
@Parameter(defaultValue="${project.build.finalName}",
readonly=true)
protected String finalName
@Parameter(defaultValue="${project.artifactId}",
readonly=true)
protected String artifactId
@Parameter(property="tomee-plugin.remove-default-webapps",
defaultValue="true")
protected boolean removeDefaultWebapps
@Parameter(property="tomee-plugin.deploy-openejb-internal-application",
defaultValue="false")
protected boolean deployOpenEjbApplication
@Parameter(property="tomee-plugin.remove-tomee-webapps",
defaultValue="true")
protected boolean removeTomeeWebapp
@Parameter(property="tomee-plugin.ejb-remote",
defaultValue="true")
protected boolean ejbRemote
@Parameter(defaultValue="${project.packaging}",
readonly=true)
protected String packaging
@Parameter(property="tomee-plugin.check-started",
defaultValue="false")
protected boolean checkStarted
@Parameter(property="tomee-plugin.use-console",
defaultValue="true")
protected boolean useConsole
@Parameter(property="tomee-plugin.exiting",
defaultValue="false")
protected boolean tomeeAlreadyInstalled
@Parameter(defaultValue="${settings}",
readonly=true)
protected org.apache.maven.settings.Settings settings
@Parameter(property="tomee-plugin.openejb",
defaultValue="false")
protected boolean useOpenEJB
@Parameter protected List<File> docBases
@Parameter protected List<File> externalRepositories
@Parameter protected org.codehaus.plexus.configuration.PlexusConfiguration inlinedServerXml
@Parameter protected org.codehaus.plexus.configuration.PlexusConfiguration inlinedTomEEXml
@Parameter(property="tomee-plugin.override-on-unzip",
defaultValue="true")
protected boolean overrideOnUnzip
@Parameter(property="tomee-plugin.skip-root-folder-on-unzip",
defaultValue="true")
protected boolean skipRootFolderOnUnzip
@Parameter(property="tomee-plugin.keystore") protected String keystore
protected File deployedFile
protected RemoteServer server
protected String container
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void fixConfig()
protected String getAdditionalClasspath()
protected String destinationName()
protected void run()
protected Collection<String> availableCommands()
protected void stopServer(CountDownLatch stopCondition)
protected boolean handleLine(String line)
protected void serverCmd(RemoteServer server, List<String> strings)
protected void addShutdownHooks(RemoteServer server)
protected int getConnectAttempts()
protected boolean getWaitTomEE()
public abstract String getCmd()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.