Build and deploy applications using Ant

Run the following commands inside the soadeploy pod.

The following steps build and deploy an Oracle SOA Suite composite application.

For instructions on deploying Oracle Service Bus composite applications using Ant, see Importing and Exporting Resources and Configurations in Developing Services Using Oracle Service Bus.

  1. Build the Oracle SOA Suite composite application using Ant.

    For example, if the application is available at /composites/antproject/Project, run:

    cd /u01/oracle/soa/bin
                            ant -f ant-sca-package.xml \
                            -DcompositeDir=/composites/antproject/Project \
                            -DcompositeName=Project \
                            -Drevision=0.1
                        

    In this example, the SOA archive is generated at /composites/antproject/Project/deploy/sca_Project_rev0.1.jar. Use this archive for deployment.

  2. Deploy the composite application to the Oracle SOA Suite instance using Ant.
    cd /u01/oracle/soa/bin
                            ant -f ant-sca-deploy.xml \
                            -DserverURL=http://soainfra-cluster-soa-cluster:7003  \
                            -DsarLocation=/composites/antproject/Project/deploy/sca_Project_rev0.1.jar \
                            -Doverwrite=true \
                            -Duser=weblogic -Dpassword=REPLACE-WITH-WEBLOGIC-PASSWORD