Deploying EAR Using Configuration File
Ensure that a dummy POM file and a configuration file are present in the EAR file location.
-
The following is a sample POM file:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tibco.dummy</groupId>
<artifactId>dummy-pom</artifactId>
<version>1.0</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
</plugin>
</plugins>
</build>
</project>
The following is a sample
deploymentconfig.propertiesfile:earUploadPath=test
externalProfileLoc=https://raw.githubusercontent.com/vpawar-ai/temp/master/test.substvar
appSpace=RestApp.module-AppSpace
restartAppNode=false
keystorePath=
profile=default.substvar
backup=true
truststorePath=
domainDesc=
bw.Home=\bw\6.6
agentPort=8079
truststorePassword=
agentAuth=BASIC
agentHost=localhost
httpPort=8454
appNode=RestApp.module-AppNode
osgiPort=
appSpaceDesc=
redeploy=true
tibco.Home=C:\tibco_bw6.6.1
externalProfile=false
keystorePassword=
backupLocation=C:\\Users\\vpawar\\Downloads\\backup
agentPassword=admin
skipTests=false
appNodeDesc=
project.type=AppSpace
failIfNoTests=false
agentSSL=false
agentUsername=admin
domain=RestApp.module-Domain
deployToAdmin=true
startOnDeploy=true
stopOnly=false
startOnly=true
To deploy the EAR file of BusinessWorks Enterprise application, perform the following steps:
- Procedure
- Open the Terminal from the path containing the EAR file, configuration file, and dummy POM file.
-
By assuming the path as
\EAR, run the following goal by providing the EAR file and configuration file locations.mvn com.tibco.plugins:bw6-maven-plugin:bwdeployer -DearLocation="\EAR" -DdeploymentConfigfile="\EAR\configFile.txt"
The EAR file is deployed successfully.