Packaging Artifacts Into Deployable Archives
This page describes how to package your artifacts into archives that you can deploy to Carbon or other servers. It contains the following sections:
Group Artifacts in to a Carbon Application Project
Suppose I already created all the artifact projects that I need.
Â
Now I want to create a Carbon Application Project group these artifacts. To create a Carbon Application Project, right click on the Project Explorer and go to New -> Project and select Carbon Application Project.
Â
Give a name to the Carbon Application project. As showed in the below image, it will display all the artifact projects that are available in the workspace. You can select whatever the projects that you need to group in to your Carbon Application Project.
Once you create the Carbon Application Project, you will see Carbon Application Project POM Editor is being opened.
Under Dependencies, you will see the project that you have selected are being ticked. It will display information such as Server Role and Version for each and every artifact. From the editor, you can change those details.
Artifact Level Packaging
With Developer Studio 2.0.0, you can create deployable archive each and every artifact level. Suppose I created an Apache Axis2 Service. Once you right click on the Axis2 Service Project, there is a option called Export Project as Deployable Archive. This will create the relevant deployable archive in the location you specified. For example, Deployable Archive for an Apache Axis2 Service is an Axis2 Archive (aar) file.
Following table shows you deployable item that will be generated for each and every artifact.
Artifact Type | Project Type |
Apache Axis2 Artifact | Axis2 Archive [aar] |
Web Application | Web Application Archive [war] |
JAX-WS Artifact | Java Archive [jar] |
Endpoint Artifact | xml |
Sequence Artifact | xml |
Proxy Service Artifact | xml |
Local Entry Artifact | xml |
Synapse Configuration | xml |
ESB Mediator | Java Archive [jar] |
Registry Resource | Registry Resource with necessary meta-data |
Registry Handler Artifact | OSGI Bundle [jar] |
Registry Filter Artifact | OSGI Bundle [jar] |
Data Service Artifact | Data Services Descriptor file [dbs] |
Data Services Validator Artifact | OSGI Bundle [jar] |
BPEL Workflow | BPEL Archive [zip] |
Gadget | Dashboard Archive [dar] |
Carbon UI Bundle | OSGI Bundle [jar] |
Third Party Library Artifact | OSGI Bundle [jar] |