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 sample configuration file is available at https://github.com/vpawar-tibco/temp/blob/master/deploymentconfig.properties.
Follow these steps to deploy the EAR file of BusinessWorks Enterprise application:
- 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.