With
the 12.1.3 release of Oracle Service Bus and Oracle SOA Suite we finally can
build all our soa projects with Maven. And this time we can do it natively
without calling a utility like configjar or ANT from Maven
Navigate
to
%MW_HOME%\oracle_common\plugins\maven\com\oracle\maven\oracle-maven-sync\12.1.3
Two
files available
· oracle-maven-sync-12.1.3.jar
· oracle-maven-sync-12.1.3.pom
and
use following commands to sync your local repository:
Check
if maven works
mvn -v
You
can also use the maven 3.0.5 version of JDeveloper 12.1.3 located at
.../oracle_common/modules/org.apache.maven_3.0.5
install
the maven sync plugin to the local repository
mvn install:install-file
-DpomFile=oracle-maven-sync-12.1.3.pom -Dfile=oracle-maven-sync-12.1.3.jar
-DoracleHome=/Users/Krishna/Oracle/Middleware12.1.3
Deploy
all the libraries to the local mvn repository
mvn -X
com.oracle.maven:oracle-maven-sync:push
-DoracleHome=/Users/Krishna/Oracle/Middleware/Oracle_Home/
update
your local archetype catalog
mvn archetype:crawl
-Dcatalog=/Users/Krishna/.m2/archetype-catalog.xml
Generate
SOA Application and project as shown below. This generates SOA
application HelloWorld-soa-application with project HelloWorld-soa-project.
mvn archetype:generate -DarchetypeGroupId=com.oracle.soa.archetype -DarchetypeArtifactId=oracle-soa-application -DarchetypeVersion=12.1.3-0-0 -DgroupId=org.my.helloworld -DartifactId=HelloWorld-soa-application -DprojectName=HelloWorld-soa-project -Dversion=1.0-SNAPSHOT
mvn -v
mvn install:install-file -DpomFile=oracle-maven-sync-12.1.3.pom -Dfile=oracle-maven-sync-12.1.3.jar -DoracleHome=/Users/Krishna/Oracle/Middleware12.1.3
mvn archetype:generate -DarchetypeGroupId=com.oracle.soa.archetype -DarchetypeArtifactId=oracle-soa-application -DarchetypeVersion=12.1.3-0-0 -DgroupId=org.my.helloworld -DartifactId=HelloWorld-soa-application -DprojectName=HelloWorld-soa-project -Dversion=1.0-SNAPSHOT









