- Build and deploy an OSB OEPE workplace
- Build one OSB project.
- Export OSB projects from an OSB server and generate a customization plan.
or with the new PS6 configjar tool which can create offline OSB exports without OEPE http://biemond.blogspot.nl/2013/04/offline-oracle-service-bus.html
Also the readme contains some examples how to this from Java without the help of Maven or Ant.
I based my scripts on the following software and folders
My Environment Oracle OSB PS5 or 188.8.131.52 with Maven 3.0.4
JVM = JDK 1.7_07 x64
Middleware home = /opt/oracle/wls/wls11g
OSB & Oracle home = /opt/oracle/wls/wls11g/Oracle_OSB1
WebLogic home = /opt/oracle/wls/wls11g/wlserver_10.3
Oepe home = /opt/oracle/wls/wls11g/oepe184.108.40.206
My Maven settings.xml
run . osb.sh to set all the Maven, Java variables.
To build a project or the whole OEPE workspace use this
To deploy or export an existing OSB server use this target-env=dev so it uses the right Maven profile for the WebLogic Settings
mvn deploy -Dtarget-env=dev
Prepare a release
Perform a release
mvn release:perform -Dtarget-env=dev
the pom.xml in the Maven_osb_ps5 folder build the whole source folder workspace, this generates a jar in the export folder with the same name as your pom definition.
the pom.xml in the Maven_osb_ps5/source/ReliableMessageWS and Maven_osb_ps5/source/XSDvalidation folder build only this project and generate a jar in the export folder with the same name as your pom definition.
Here is an example of a pom which build and deploys the whole OSB OEPE workspace.
This pom has the following plugins
- exec-maven-plugin for building the OSB jar and deploy the jar to the OSB server,
- maven-assembly-plugin for adding the OSB jar as maven artifact
- maven-release-plugin for OSB releases.
And here the assembly to add the generated OSB jar to Maven artifact