Using JDeveloper with Maven

Seems like Maven is gathering some ground as a build tool. One clear indication of this has been the increasing flow of questions on the OTN forum about how to work with JDeveloper and Maven based projects.

The basic scenario is that a company decides to use Maven as their build tool, and developers who are using JDeveloper are usually wondering how to map the Maven directory structure to a JDeveloper project.
Luckily for them the guys who are working on Trinidad faced a similar problem and created a Maven plug-in that creates a JDeveloper project file (jpr) based on the Maven project.

Using the plug-in is quite trivial, but when people are googling for information about "JDeveloper and Maven" they get pointers to old docs that talk about the old Maven1 JDeveloper plugin.

To fix this situation, we now have a new Maven and JDeveloper how-to that will show you how to get the plug-in and how to use it, as well as how to run maven builds from inside JDeveloper and how to get code insight when working with the pom.xml files. I hope this will help.

update Jan 2011 - note that there is now a Maven extension to JDeveloper that you can get through the help->check for update.
I updated the link above to point to a new tutorial that covers the basics of working with this extension.

Comments:

thank you Shay for this article

Posted by Daniel Adja on November 04, 2010 at 03:34 AM PDT #

Hi Shay, I like this article as well but.... I am trying to use Maven and JDeveloper for a week now. And I always get stuck with the same problem. I can download and install the extensions. Create new Maven projects. When I package or compile them I can see that the sources are being downloaded and added to my local repository but they are not added in my .jpr and I cannot use them in my project unless I add them as lib manually in my project. (build ends successfull -but they are not added in the created jar) If I try to add the folder (where the downloaded jars are) as lib folder to project they are only added as jar and I cannot use them. Is there another way to update my dependencies from JDeveloper? How can I integrate them properly to my project so I can use them? Is there a newer Hands-On maybe solving my problems? What am I doing wrong? Is there a template project to download maybe? I hope I could explain my problem good enough because in the forum I did not get an answer yet. I am looking forward to hearing from you-- now I am compiling the project then adding the jars as libs and then compiling again... Thx in advance. Christof

Posted by Christof Kaller on May 30, 2011 at 05:10 AM PDT #

Christof, synchronizing POM and project libraries is something we added to the production Maven extension which should come out with the upcoming JDeveloper 11.1.2.0 soon.

Posted by Shay on May 31, 2011 at 08:20 AM PDT #

Hi Shay !
Thanks for the valuable info about the "Maven with Jdeveloper"
Shay, i have Webcenter application and i have to create the Maven script for same. In the initial state I’m gathering the information about "How maven works with Webcenter Application" . your article is much more useful to build the my Application using Maven.
But I’m facing problem to create "AutoGeneratedMar" using Maven

will you please assist me how to create "AutoGeneratedMar" using Maven ? because this file have the MDS configuration entries and this is more use full for my project .

Thanks you !!!

Posted by guest on March 26, 2013 at 05:55 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today