public class DeployMojoSupport extends PluginConfigSupport
BasicSupport.InstallType| Modifier and Type | Field and Description |
|---|---|
protected io.openliberty.tools.common.plugins.config.ApplicationXmlDocument |
applicationXml |
protected File |
copyLibsDirectory
When deploying loose applications, the optional directory to which application dependencies are copied.
|
protected long |
timeout
Timeout to verify deploy successfully, in seconds.
|
appsDirectory, looseApplication, PLUGIN_CONFIG_XML, stripVersionbootstrapMavenProps, bootstrapProperties, bootstrapPropertiesFile, combinedBootstrapProperties, combinedJvmOptions, copyDependencies, defaultVarMavenProps, envMavenProps, HEADER, jvmMavenProps, jvmOptions, jvmOptionsFile, PLUGIN_VARIABLE_CONFIG_XML, pluginManager, serverXmlFile, varMavenPropsassemblyArchive, assemblyArtifact, assemblyInstallDirectory, configDirectory, defaultOutputDirSet, install, installDirectory, installType, isInstall, libertyRuntimeVersion, licenseArtifact, mergeServerEnv, messages, outputDirectory, refresh, serverDirectory, serverEnvFile, serverName, skip, START_APP_MESSAGE_REGEXP, userDirectoryant, artifactRepository, mavenProjectBuilder, project, reactorProjects, repoSession, repositories, repositorySystem, session, settings| Constructor and Description |
|---|
DeployMojoSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAppFileName(org.apache.maven.project.MavenProject project) |
protected String |
getLooseConfigFileName(org.apache.maven.project.MavenProject project) |
protected void |
installApp(org.apache.maven.artifact.Artifact artifact) |
protected void |
installLooseConfigEar(org.apache.maven.project.MavenProject proj,
io.openliberty.tools.common.plugins.config.LooseConfigData config) |
protected void |
installLooseConfigWar(org.apache.maven.project.MavenProject proj,
io.openliberty.tools.common.plugins.config.LooseConfigData config,
boolean container) |
protected void |
invokeSpringBootUtilCommand(File installDirectory,
String fatArchiveSrcLocation,
String thinArchiveTargetLocation,
String libIndexCacheTargetLocation)
Executes the SpringBootUtilTask to thin the Spring Boot application
executable archive and place the thin archive and lib.index.cache in the
specified location.
|
static boolean |
isSupportedLooseAppType(String type) |
protected boolean |
isSupportedType(String type) |
protected boolean |
matches(org.apache.maven.artifact.Artifact artifact,
org.codehaus.mojo.pluginsupport.util.ArtifactItem assemblyArtifact) |
protected void |
validateAppConfig(String fileName,
String artifactId) |
protected void |
validateAppConfig(String fileName,
String artifactId,
boolean isSpringBootApp) |
protected void |
verifyAppStarted(String appFile) |
exportParametersToXml, findConfigFile, getAppConfigLocationsFromSourceServerXml, getApplicationFilename, getAppsDirectory, getDeployPackages, getLibertyAssemblyWarSourceDirectory, getWarSourceDirectory, installServerAssembly, isAnyAppConfiguredInSourceServerXml, isAppConfiguredInSourceServerXml, stripVersionFromNamecopyConfigFiles, getLibertyPlugin, getPlugin, getPluginFromPluginManagement, initializeJava, isConfigCopied, runLibertyMojoCreate, runLibertyMojoDeploy, runLibertyMojoDeploy, runLibertyMojoInstallFeature, runMojocheckServerDirectoryExists, checkServerHomeExists, deleteApplication, deleteApplication, getLibertyDirectoryPropertyFiles, getLibertyDirectoryPropertyFiles, init, installFromArchive, installFromFile, installLicensecreateArtifact, createArtifactItem, dependencyTrailContainsArtifact, findTransitiveDependencies, getArtifact, getArtifact, getArtifactRepository, getProject, getReactorMavenProject, getResolvedDependencyWithTransitiveDependencies, isReactorMavenProjectcontextualize, doExecute, execute, getArtifactFactory, getArtifactResolver, getProjectArtifacts, getProjectArtifacts, getProjectArtifacts, resolveArtifact, resolveArtifact@Parameter(property="timeout",
defaultValue="40")
protected long timeout
@Parameter(property="copyLibsDirectory") protected File copyLibsDirectory
protected io.openliberty.tools.common.plugins.config.ApplicationXmlDocument applicationXml
protected void installApp(org.apache.maven.artifact.Artifact artifact)
throws Exception
Exceptionprotected void installLooseConfigWar(org.apache.maven.project.MavenProject proj,
io.openliberty.tools.common.plugins.config.LooseConfigData config,
boolean container)
throws Exception
Exceptionprotected void installLooseConfigEar(org.apache.maven.project.MavenProject proj,
io.openliberty.tools.common.plugins.config.LooseConfigData config)
throws Exception
Exceptionprotected void verifyAppStarted(String appFile) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String getLooseConfigFileName(org.apache.maven.project.MavenProject project)
protected String getAppFileName(org.apache.maven.project.MavenProject project)
protected void validateAppConfig(String fileName, String artifactId) throws Exception
Exceptionprotected void validateAppConfig(String fileName, String artifactId, boolean isSpringBootApp) throws Exception
Exceptionprotected void invokeSpringBootUtilCommand(File installDirectory, String fatArchiveSrcLocation, String thinArchiveTargetLocation, String libIndexCacheTargetLocation) throws Exception
installDirectory - : Installation directory of Liberty profile.fatArchiveSrcLocation - : Source Spring Boot FAT executable archive location.thinArchiveTargetLocation - : Target thin archive location.libIndexCacheTargetLocation - : Library cache location.Exceptionprotected boolean matches(org.apache.maven.artifact.Artifact artifact,
org.codehaus.mojo.pluginsupport.util.ArtifactItem assemblyArtifact)
protected boolean isSupportedType(String type)
public static boolean isSupportedLooseAppType(String type)
Copyright © 2021 the original author or authors.