@Mojo(name="compile-bw-ear", defaultPhase=COMPILE) public class CompileEARMojo extends AbstractBWArtifactMojo
This goal creates a TIBCO BusinessWorks EAR based on the configuration given in the project's POM.
The most important parameters are:
Other parameters have default values set with the global values of "settings.xml" file.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
archiveFile
Path to the Archive descriptor relatively to the BusinessWorks project
path.
|
protected static java.lang.String |
BUILD_EAR_FAILED |
protected static java.lang.String |
BUILDEAR_BINARY_NOTFOUND |
protected static java.lang.String |
BUILDING_EAR |
protected static java.lang.String |
COPY_EAR_FAILED |
protected static java.lang.String |
EAR_LOCATION |
protected java.io.File |
tibcoBuildEARPath
Path to the TIBCO "buildear" binary.
|
protected java.lang.Boolean |
tibcoBuildEARValidation
Whether to validate or not the EAR before building
(-v switch of buildear).
|
classifier, finalName, skipCompile, skipEARCompile, skipPackage, skipProjlibCompile, touchEARIfSkipped, touchFinalDeploymentDescriptorIfSkipped, touchProjlibIfSkipped, WARN_NO_ARTIFACT_ATTACHED
ALIASES_FILE, APPMANAGE_BINARY_NOTFOUND, buildLibDirectory, buildSrcDirectory, BWEAR_DEPLOY_TYPE, BWEAR_EXTENSION, BWEAR_TYPE, BWPROJECT_NOTFOUND, BWPROJECT_PREF_LIB_ERROR_MSG, dependenciesIgnored, DESIGNER_BINARY_NOTFOUND, DESIGNER5_PREFS, directory, DTL_FILE_NAME, FILE_ALIAS_PREFIX, FILE_ALIAS_PREFIX_ESCAPED, HAWK_BINARY_NOTFOUND, hawkDomain, hawkRvDaemon, hawkRvNetwork, hawkRvService, hawkSubscribeInterval, hawkSubscribeNumberOfRetry, hawkVersion, hideLibraryResources, JAR_EXTENSION, JAR_TYPE, mavenPropertyPattern, outputDirectory, packageDirectory, POM_EXTENSION, POM_TYPE, projectDirectory, PROJLIB_EXTENSION, PROJLIB_TYPE, PROPERTIES_EXTENSION, session, SKIPPING, sourceEncoding, testDirectory, testLibDirectory, testSrcDirectory, TIBCO_ALIAS_PREFIX, TIBCO_HOME_DIR, tibcoAppManagePath, tibcoAppManageTRAPath, tibcoBuildEARTRAPath, tibcoBuildEARUseDesignerTRA, tibcoBuildLibraryTRAPath, tibcoBuildLibraryUseDesignerTRA, tibcoBWEngineTRAPath, tibcoDesignerPath, tibcoDesignerTRAPath, tibcoHome, tibcoRvHomePath, timeOut, XML_EXTENSION, XML_TYPE
Constructor and Description |
---|
CompileEARMojo() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
cleanDirectory(java.io.File directory)
Delete all file of a directory and then delete this directory
|
protected void |
cleanVarsDirectory(java.io.File varsDirectory,
java.util.List<org.apache.maven.model.Dependency> projlibList) |
void |
execute()
The execute method of this Mojo will :
check that the BusinessWorks project exists
copy the Designer5.prefs file
copy the .designtimelibs file useful for setting a TIBCO environment
for the project being built.
|
protected java.lang.String |
getArtifactFileExtension() |
attachFile, checkOutputDirectory, getArtifactFile, getOutputFile
checkAppManage, checkDesigner, enableTestScope, getAliasesFile, getBWEARAlias, getBWEARName, getBWEARsDependencies, getDependencies, getDependencyPath, getDesigner5Prefs, getJarAlias, getJarDependencies, getJarName, getProject, getProjlibAlias, getProjlibName, getProjlibsDependencies, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValueInSettings, getRootProjectProperty, getRootProjectProperty, getSession, initHawk, isCurrentGoal, launchTIBCOBinary, launchTIBCOBinary, propertiesManager, propertyExists, propertyExists, propertyExistsInSettings, propertyExistsInSettings, readDependenciesFromFile, replaceProperties, setProject, setSession, setSettings
protected static final java.lang.String BUILDEAR_BINARY_NOTFOUND
protected static final java.lang.String BUILD_EAR_FAILED
protected static final java.lang.String COPY_EAR_FAILED
protected static final java.lang.String BUILDING_EAR
protected static final java.lang.String EAR_LOCATION
@Parameter(property="bw.project.archive.builder", required=true) protected java.lang.String archiveFile
@Parameter(property="buildear.path", required=true) protected java.io.File tibcoBuildEARPath
@Parameter(property="buildear.validate", defaultValue="true") protected java.lang.Boolean tibcoBuildEARValidation
Whether to validate or not the EAR before building (-v switch of buildear).
protected java.lang.String getArtifactFileExtension()
getArtifactFileExtension
in class AbstractBWArtifactMojo
protected void cleanVarsDirectory(java.io.File varsDirectory, java.util.List<org.apache.maven.model.Dependency> projlibList)
protected boolean cleanDirectory(java.io.File directory)
directory
- public void execute() throws org.apache.maven.plugin.MojoExecutionException
AbstractBWMojo
The execute method of this Mojo will :
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractBWArtifactMojo
org.apache.maven.plugin.MojoExecutionException