Oracle SOA MDS Deployment using Maven:
To build MDS I used ojdeploy plugin, to deploy I used soa plugin.
To build MDS I used ojdeploy plugin, to deploy I used soa plugin.
For Maven setup see Edwin’s blog.
Create Custom Application called MDSApp
Name your project as MDSProj
Create a new folder called mds inside MDSProj project and copy all your MDS artifacts to mds folder
Create jar deployment profile for Project
Un-check Include Manifest File
Go to Contributors un check everything, add mds folder as Contirbutor
Create SOA Bundle Deployment Profile for MDSApp
Select mds jar as Dependency
Create a Maven POM for the Application
paste below into created pom.xml
<?xml version="1.0" encoding="UTF-8" ?>
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>MDSApp</groupId>
<artifactId>MDSApp</artifactId>
<version>1.0-SNAPSHOT</version>
<description>Super POM for MDSApp</description>
<packaging>pom</packaging>
<build>
<plugins>
<plugin>
<groupId>com.oracle.adf.plugin</groupId>
<artifactId>ojdeploy</artifactId>
<version>12.1.3-0-0</version>
<configuration>
<ojdeploy>${oracleHome}/jdeveloper/jdev/bin/ojdeploy</ojdeploy>
<workspace>${basedir}/MDSApp.jws</workspace>
<profile>mdsBundle</profile>
<usemaven>true</usemaven>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.oracle.soa.plugin</groupId>
<artifactId>oracle-soa-plugin</artifactId>
<version>12.1.3-0-0</version>
<configuration>
<compositeName>MDSApp</compositeName>
<composite>${scac.input}</composite>
<sarLocation>${basedir}/deploy/mdsBundle.zip</sarLocation>
<serverUrl>${serverUrl}</serverUrl>
<user>${user}</user>
<password>${password}</password>
<compositeRevision>${composite.revision}</compositeRevision>
<revision>${composite.revision}</revision>
<scacInputDir>${scac.input.dir}</scacInputDir>
<input>${input}</input>
</configuration>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>
Run mvn ojdeploy:deploy to build SOA bundle zip
mvn ojdeploy:deploy -DoracleHome=/Users/KRISHNA/Oracle/Middleware/bpm_quick_start
Run mvn oracle-soa:deploy to deploy SOA bundle zip
mvn oracle-soa:deploy -DserverUrl=http://localhost:7101 -Duser=weblogic -Dpassword=weblogic1
With this, I am getting a lot of warnings and error.
ReplyDeleteDownloading: https://repo.maven.apache.org/maven2/com/oracle/soa/rl/12.2.1-3-0/rl-12.2.1-3-0.pom
[WARNING] The POM for com.oracle.soa:rl:jar:12.2.1-3-0 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/com/oracle/soa/rulesdk2/12.2.1-3-0/rulesdk2-12.2.1-3-0.pom
[WARNING] The POM for com.oracle.soa:rulesdk2:jar:12.2.1-3-0 is missing, no dependency information available
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project MDSApp:MDSApp:1.0-SNAPSHOT (C:\JDeveloper\mywork\MDSApp\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin com.oracle.soa.plugin:oracle-soa-plugin:12.2.1-3-0 or one of its dependencies could not be resolved: Failed to collect dependencies
found 50+ dependent poms that are missing in the given repository(URL). Any sugestion/help will be greatly appreciated!