Deploying EAR Using Maven
- Ensure that the TIBCO® Enterprise Administrator is up and running with the registered BWAgent.
To deploy EAR on AppSpace via TIBCO Business Studio for BusinessWorks, perform the following steps:
- Procedure
- Right-click a
.parentapplication and select Generate POM for Application. The Generate POM for Application dialog opens. -
To set Deploy Options, select AppSpace from the dropdown list while generating
pom.xml. Then click Next.
-
Update the required configuration details (Agent, AppNode, and so on) in the Deployment Details for TIBCO BusinessWorks™ wizard and select the appropriate Profile.
Here,
-
The Skip upload of Archive checkbox must be selected for using the existing EAR to be deployed on AppSpaces with different profiles, else, the profile change is updated for all the instances of EAR deployed across AppSpaces.
-
The Start on Deploy option can be used to deploy and start the application.
-
The Stop Application option can be used to stop the application (version mentioned in the
pom.xmlfile). -
The Start Application option can be used to start the application (version mentioned in the
pom.xmlfile).
Note: If you are unable to see the above checkboxes, maximize your window. -
-
Click Finish. Right-click the
.parentfolder and run themvn clean installgoal.The application is now deployed on AppSpace.
Deploying Multiple EARs on the Same AppNode with Different Versions
For the application to have an updated version, you must update the version in the POM and Manifest files of the module, the parent, and the application respectively.
When deploying for the first time, select only the Start on Deploy option in pom.xml, which can deploy and start the application (here, you can use the Maven > install goal). If you want to stop or start the application explicitly, then you must regenerate the pom.xml file and select the Start Application or Stop Application options as per the requirement. Then run the Maven > install goal again.