Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to change ear name and war context-root?

BatousikMar 31 2015 — edited Apr 1 2015

Hi,

I am using Jdeveloper version 12.1.2

I am trying to achieve continuous integration using maven for ADF Fusion Middleware Application.

I finally came to the stage where maven build produce something that looks like a ear file that I am trying to achieve.

I am Using Jenkins server to create builds.

But now I am stack at how to version my generated artifact. I really need to do a simple task rename ear file that was created from foo.ear to foo-0.1.ear and with each next build I need to increment that value somehow. Not only actual ear but also I need to change the context-root of the application to the same name as the ear file.

How can I achieve that? Can deployement plan, jenkins, maven, ojdeploy, ojmake or weblogic deploy maven plugin help me to achieve that? another thing would probably involve creating a batch or sh script to manually go into files and rename needed values but I am hoping to avoid it.

Thanks in advance, Bato

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2015
Added on Mar 31 2015
4 comments
2,062 views