net.wasdev.wlp.maven.plugins
Class BasicSupport

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.pluginsupport.MojoSupport
          extended by net.wasdev.wlp.maven.plugins.AbstractLibertySupport
              extended by net.wasdev.wlp.maven.plugins.BasicSupport
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Direct Known Subclasses:
DeployAppMojo, InstallAppsMojo, InstallServerMojo, StartDebugMojoSupport, UndeployAppMojo

public class BasicSupport
extends AbstractLibertySupport

Basic Liberty Mojo Support


Nested Class Summary
protected static class BasicSupport.InstallType
           
 
Field Summary
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 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 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  String serverName
          Liberty server name, default is defaultServer
protected static String START_APP_MESSAGE_REGEXP
           
protected  File userDirectory
          Liberty user directory (WLP_USER_DIR).
 
Fields inherited from class net.wasdev.wlp.maven.plugins.AbstractLibertySupport
ant, artifactRepository, project
 
Fields inherited from class org.codehaus.mojo.pluginsupport.MojoSupport
container, log
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BasicSupport()
           
 
Method Summary
protected  void checkServerDirectoryExists()
           
protected  void checkServerHomeExists()
           
protected  void init()
           
protected  void installServerAssembly()
          Performs assembly installation unless the install type is pre-existing.
 
Methods inherited from class net.wasdev.wlp.maven.plugins.AbstractLibertySupport
getArtifactRepository, getProject
 
Methods inherited from class org.codehaus.mojo.pluginsupport.MojoSupport
contextualize, createArtifact, doExecute, execute, getArtifact, getArtifactFactory, getArtifactResolver, getProjectArtifacts, getProjectArtifacts, getProjectArtifacts, resolveArtifact, resolveArtifact
 
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

START_APP_MESSAGE_REGEXP

protected static final String START_APP_MESSAGE_REGEXP
See Also:
Constant Field Values

messages

protected static final ResourceBundle messages

refresh

protected boolean refresh
Enable forced install refresh.


isInstall

protected boolean isInstall
Set the false to skip the installation of the assembly, re-using anything that is already there.


assemblyInstallDirectory

protected File assemblyInstallDirectory
Server Install Directory


installDirectory

protected File installDirectory
Installation directory of Liberty profile.


serverName

protected String serverName
Liberty server name, default is defaultServer


userDirectory

protected File userDirectory
Liberty user directory (WLP_USER_DIR).


outputDirectory

protected File outputDirectory
Liberty output directory (WLP_OUTPUT_DIR).


serverDirectory

protected File serverDirectory
Server Directory: ${installDirectory}/usr/servers/${serverName}/


installType

protected BasicSupport.InstallType installType

assemblyArchive

protected File assemblyArchive
A file which points to a specific assembly ZIP archive. If this parameter is set, then it will install server from archive


assemblyArtifact

protected org.codehaus.mojo.pluginsupport.util.ArtifactItem assemblyArtifact
Maven coordinates of a server assembly. This is best listed as a dependency, in which case the version can be omitted.

Constructor Detail

BasicSupport

public BasicSupport()
Method Detail

init

protected void init()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Overrides:
init in class AbstractLibertySupport
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

checkServerHomeExists

protected void checkServerHomeExists()
                              throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

checkServerDirectoryExists

protected void checkServerDirectoryExists()
                                   throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

installServerAssembly

protected void installServerAssembly()
                              throws Exception
Performs assembly installation unless the install type is pre-existing.

Throws:
Exception


Copyright © 2014. All Rights Reserved.