public class BasicSupport extends AbstractLibertySupport
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BasicSupport.InstallType |
| Modifier and Type | Field and Description |
|---|---|
protected File |
assemblyArchive
A file which points to a specific assembly ZIP archive.
|
protected org.codehaus.mojo.pluginsupport.util.ArtifactItem |
assemblyArtifact
Maven coordinates of a server assembly.
|
protected File |
assemblyInstallDirectory
Server Install Directory
|
protected File |
configDirectory
Location of customized configuration directory
|
protected boolean |
defaultOutputDirSet |
protected Install |
install
Liberty install option.
|
protected File |
installDirectory
Installation directory of Liberty profile.
|
protected BasicSupport.InstallType |
installType |
protected boolean |
isInstall
Set the false to skip the installation of the assembly, re-using anything
that is already there.
|
protected String |
libertyRuntimeVersion
Version to override any specified in the assemblyArtifact
|
protected org.codehaus.mojo.pluginsupport.util.ArtifactItem |
licenseArtifact
Maven coordinates of a liberty license artifact.
|
protected boolean |
mergeServerEnv
If set, merges server.env contents from default server.env, configDir server.env, inline properties, and specified server.env
|
protected static ResourceBundle |
messages |
protected File |
outputDirectory
Liberty output directory (WLP_OUTPUT_DIR).
|
protected boolean |
refresh
Enable forced install refresh.
|
protected File |
serverDirectory
Server Directory: ${installDirectory}/usr/servers/${serverName}/
|
protected File |
serverEnvFile
Location of customized server environment file server.env
|
protected String |
serverName
Liberty server name, default is defaultServer
|
protected boolean |
skip
Skips the specific goal
|
protected static String |
START_APP_MESSAGE_REGEXP |
protected File |
userDirectory
Liberty user directory (WLP_USER_DIR).
|
ant, artifactRepository, mavenProjectBuilder, project, reactorProjects, repoSession, repositories, repositorySystem, session, settings| Constructor and Description |
|---|
BasicSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkServerDirectoryExists() |
protected void |
checkServerHomeExists() |
protected void |
deleteApplication(File parent,
File artifactFile) |
protected void |
deleteApplication(File parent,
String filename) |
protected Map<String,File> |
getLibertyDirectoryPropertyFiles() |
static Map<String,File> |
getLibertyDirectoryPropertyFiles(File installDir,
File userDir,
File serverDir) |
protected void |
init() |
protected void |
installFromArchive() |
protected void |
installFromFile() |
protected void |
installLicense() |
protected void |
installServerAssembly()
Performs assembly installation unless the install type is pre-existing.
|
protected String |
stripVersionFromName(String name,
String version) |
createArtifact, createArtifactItem, dependencyTrailContainsArtifact, findTransitiveDependencies, getArtifact, getArtifact, getArtifactRepository, getProject, getReactorMavenProject, getResolvedDependencyWithTransitiveDependencies, isReactorMavenProjectcontextualize, doExecute, execute, getArtifactFactory, getArtifactResolver, getProjectArtifacts, getProjectArtifacts, getProjectArtifacts, resolveArtifact, resolveArtifactprotected static final String START_APP_MESSAGE_REGEXP
protected static final ResourceBundle messages
protected boolean defaultOutputDirSet
@Parameter(property="skip",
defaultValue="false")
protected boolean skip
@Parameter(property="refresh",
defaultValue="false")
protected boolean refresh
@Parameter(property="isInstall",
defaultValue="true")
protected boolean isInstall
@Parameter(alias="runtimeInstallDirectory",
property="runtimeInstallDirectory",
defaultValue="${project.build.directory}/liberty")
protected File assemblyInstallDirectory
@Parameter(property="installDirectory") protected File installDirectory
@Parameter(property="serverName",
defaultValue="defaultServer")
protected String serverName
@Parameter(property="userDirectory") protected File userDirectory
@Parameter(property="outputDirectory") protected File outputDirectory
protected File serverDirectory
protected BasicSupport.InstallType installType
@Parameter(alias="runtimeArchive",
property="runtimeArchive")
protected File assemblyArchive
@Parameter(alias="runtimeArtifact",
property="runtimeArtifact")
protected org.codehaus.mojo.pluginsupport.util.ArtifactItem assemblyArtifact
@Parameter protected Install install
@Parameter protected org.codehaus.mojo.pluginsupport.util.ArtifactItem licenseArtifact
@Parameter(property="configDirectory",
defaultValue="${basedir}/src/main/liberty/config")
protected File configDirectory
@Parameter(alias="serverEnv",
property="serverEnvFile")
protected File serverEnvFile
@Parameter(property="mergeServerEnv",
defaultValue="false")
protected boolean mergeServerEnv
@Parameter(alias="libertyRuntimeVersion",
property="liberty.runtime.version")
protected String libertyRuntimeVersion
protected void init()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
init in class AbstractLibertySupportorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void checkServerHomeExists()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void checkServerDirectoryExists()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void installServerAssembly()
throws Exception
Exceptionprotected void installLicense()
throws org.apache.maven.plugin.MojoExecutionException,
IOException
org.apache.maven.plugin.MojoExecutionExceptionIOExceptionprotected void deleteApplication(File parent, File artifactFile) throws IOException
IOExceptionprotected void deleteApplication(File parent, String filename) throws IOException
IOExceptionpublic static Map<String,File> getLibertyDirectoryPropertyFiles(File installDir, File userDir, File serverDir) throws IOException
IOExceptionCopyright © 2021 the original author or authors.