X

Shay Shmeltzer's Oracle Development Tools Tips

  • July 19, 2007

Using JDeveloper with Maven

Shay Shmeltzer
Director of Product Management - Oracle

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.

Join the discussion

Comments ( 7 )
  • Daniel Adja Thursday, November 4, 2010
    thank you Shay for this article
  • Christof Kaller Monday, May 30, 2011
    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
  • Shay Tuesday, May 31, 2011
    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.
  • guest Tuesday, March 26, 2013

    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 !!!


  • Joseph Thursday, November 3, 2016

    Hi Shay,

    I am trying to use Maven in JDeveloper 11.1.1.7.0 version. I installed the maven plugin through check for updates. But I see the maven extension as "Developer Preview" version while installing. After installing the plugin, I can see maven option available in JDeveloper.

    I tried to create a fusion web application and created pom.xml for the project. But it is creating an empty pom with only Model dependency and the compiler plugin. Default ADF libraries are not being added to the pom.xml.

    I installed the JDeveloper 11.1.2.0.0 version and did the same. Here all the default ADF libraries that will come with fusion web application are created automatically in pom.xml.

    Is Maven is supported completely in JDeveloper 11.1.1.7.0 version ? Or do we have any other way to add the ADF Libraries in pom.xml. ?

    I am struggling with this from one week. Can you please suggest me on this.

    Regards,

    Joseph


  • Shay Shmeltzer Thursday, November 3, 2016

    Joseph, The Maven support in the 11.1.1.* releases wasn't too advance - the focus back then was more about Any.

    If you are serious about using Maven I highly recommend you upgrade to the the 12c releases - where Maven is built into JDeveloper in a much better way.


  • Eshwar Wednesday, June 19, 2019
    Hi Shay,

    I have created a maven project using JDeveloper 12.2.1.2.0 . For some reason., Application Resources only list the files added to src/main/java. I don't see java files added to src/test/java . Eclipse lists both source paths.

    Is this a limitation for Maven projects in JDev ?..
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.