Follow Us on Twitter

Using maven to deploy your Oracle 12c SCA

by Dirk Janssen on July 1, 2014 · 2 comments

After installing SOA Suite 12c I created, as everyone else, my first composite. Jdeveloper will generate your project for you. The first thing you will notice is the new directory structure. Not every file is loaded in same directory like it used to be in SOA Suite 11g.

When giving the directory structure a second look I noticed the “resources” directory with the pom file in it. 12c has maven support!
However, when running my brand new project with maven I encountered an error. Maven couldn’t load every dependency. Together with my colleague (Remco Cats) we came across a blog post from Bruno Borges: https://blogs.oracle.com/brunoborges/entry/docker_java_ee_7_… which contained the answer to our problem. You first have to synchronize your local maven repository with the depencies.

This can be done by following the “Configuring your local Maven repository” paragraph from the post.

After you finished step 4 your repository is ready and you can start installing your composite with mvn.

Ratings:
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

{ 1 comment… read it below or add one }

joe February 1, 2017 at 10:24 pm

Hi,

I am trying build and deploy my OSB application using maven. My application structure will be as follows:
pom.xml(lists the projects as modules)
|———project 1/pom.xml
|——–project 2/pom.xml

I can successfully package my application using mvn package command. Now when I want to deploy my application onto DEV environment. I try to run the following command
mvn pre-integration-test -Dtarget-env=DEV

This command is again packaging my application. How I can modify my pom.xml so that i can only deploy my application DEV environment and restrict it from packaging again before deploying?
Please help me solve this issue

Reply

Leave a Comment

 

{ 1 trackback }

Previous post:

Next post:

About Whitehorses
Company profile
Services
Technology

Whitehorses website

Home page
Whitebooks
Jobs

Follow us
Blog post RSS
Comment RSS
Twitter