Written by ilgrosso
Cargo is a really nice piece of software that comes handy when developing web apps, by enabling deployment on a significant number of JEE containers at a very low price of some configuration parameters.
The current version (1.2.2) has support for Oracle WebLogic up to 10.3.x; however, with some very little modifications it can handle 12c as well.
The following snippet should be quite self-explanatory: let ${weblogic.home} be the directory where you have WebLogic installed.
<plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.2.2</version> <configuration> <container> <containerId>weblogic103x</containerId> <type>installed</type> <home>${weblogic.home}/wlserver</home> <dependencies> <dependency> <location>${weblogic.home}/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar</location> </dependency> <dependency> <location>${weblogic.home}/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar</location> </dependency> </dependencies> <log>${cargo.log}</log> <output>${cargo.output}</output> <systemProperties> <java.endorsed.dirs>${weblogic.home}/wlserver/endorsed</java.endorsed.dirs> </systemProperties> </container> <configuration> <properties> <cargo.weblogic.bea.home>${weblogic.home}</cargo.weblogic.bea.home> </properties> </configuration> </configuration> </plugin>
I made this post into a feature request and the Cargo team included it in the next release 1.2.4.
Open Source rulez! ;-)