X

Proactive insights, news and tips from Oracle WebLogic Server Support. Learn Oracle from Oracle.

  • January 13, 2015

WebLogic Server and the Oracle Maven Repository

Guest Author

http://maven.oracle.com

The Oracle Maven Repository has just gone live and is now available for public access. 

This really is excellent news and provides developers with free and easy access (registration required) to APIs, libraries and utilities they regularly use to build applications with WebLogic Server. 

From a WebLogic Server perspective, the Oracle Maven Repository provides publicly accessible, online, on-demand access to the full set of Maven product artifacts that have been provided in the 12c (12.1.2, 12.1.3) releases. This includes the WebLogic Server APIs, the client libraries and the WebLogic Server Maven Plugin.  It also includes the similar set of Coherence artifacts that ship within the WebLogic Server product distributions as well as other artifacts from the Oracle Fusion Middleware stack. 

To access the Oracle Maven Repository, there are two fundamental requirements to be aware of:

1. You must be using Maven 3.2.5 or later.  This contains the version of the component (Wagon 2.8) that has been enhanced to support access to artifacts that are protected by HTTP authentication schemes.

2. You must be registered with OTN and have accepted the agreement to access and use the Oracle Maven Repository.  This can be done with either a new or an existing OTN user account by accessing the http://maven.oracle.com site and clicking the registration link.  

Once registered, you then just need to configure your local Maven environment with the details of the Oracle Maven Repository, including information that relates to the authentication model specifying your OTN username and password.  Thorough documentation is provided and linked to from the main Oracle Maven Repository page.


The Maven provided password-encryption feature can be used to securely encrypt the password for convenient storage in a configuration file so that is not stored in human readable form and can be presented automatically when requested as part of accessing the Oracle Maven Repository. 

Once the repository is configured, developers can include dependencies on WebLogic Server artifacts in their projects and have them automatically retrieved from the Oracle Maven Repository as needed when the projects are being built or tests are being run from a Continuous Integration environment. 

The Oracle Maven Repository provides a significant step up for developer ease-of-use and productivity when working with WebLogic Server.

Join the discussion

Comments ( 18 )
  • Ladislav Jech Tuesday, January 13, 2015

    Finally!!! That sounds really good. I just week ago extracted all the artifacts from local 12.1.3 installation into local Maven and Nexus repositories. I am interested in automated synchronization of Oracle Maven and internal Nexus. Will try directly :-) This might be interesting in case the building environment cannot be connected directly to internet.

    +1 for this step.

    Ladislav


  • nexususer Tuesday, January 13, 2015

    How I can configure access to Oracle Maven Repository using repository manager like Nexus?


  • Steve Button Wednesday, January 14, 2015

    For those of you interested in hooking up the Oracle Maven Repository to your own repository managers see https://community.oracle.com/message/12795173#12795173

    "We are aware that some of you want to proxy the Oracle Maven Repository with repository managers like Artifactory and Nexus. We have tested the three common ones, and found that they all need small patches to understand the authentication we are using. We are working with them to patch these issues. We will let you know the JIRA ID's for these issues when they are available. If you want to help, you can upvote the issues, or if you are using commercial versions, you could contact your representative to let them know you want these patches."


  • seb Wednesday, January 14, 2015

    That's great news.

    However I was not able to find a way to search through available artifacts.

    Is the oracle driver available?


  • Aino Andriessen Tuesday, January 20, 2015

    That's really great news. Waited years for it ;-)

    Looking forward to the Nexus patch.

    Aino


  • Steve Button Wednesday, January 21, 2015

    gday Seb -

    I assume when you say driver, you mean the Oracle JDBC driver?

    The Oracle Maven Repository publishes the same set of artefacts that are provided with the WebLogic Server 12.1.2 and 12.1.3 releases.

    Looking in my local WebLogic Server 12.1.3 installation, I see that we provide an artefact for the OJDBC7 driver as:

    <groupId>com.oracle.weblogic</groupId>

    <artifactId>ojdbc7</artifactId>

    <version>12.1.3-0-0</version>

    <packaging>jar</packaging>

    From the local installation, this POM merges with the "oracle_common/modules/oracle.jdbc_12.1.0/ojdbc7.jar" library when the artefact is installed.

    Therefore I'd give that coordinate a try and see if it works for you.


  • nexususer Wednesday, January 21, 2015

    @SteveButton Should we (community) ask for coordinates each time we're looking for an artifact? Please, enable repo browsing, that will help a lot.


  • LiamCoughlin Wednesday, January 21, 2015

    Repository browsing would be incredibly useful to down stream internal devs as well.


  • Steve Button Thursday, January 22, 2015

    gday all -

    The requests for a search capability are well received and completely understood. The engineering team who rolled this out are currently examining the feasibility of providing some form of search capability - it's been on a to-do list but wasn't something that we wanted to hold the general availability up for.

    -steve-


  • Yossi Shaul Wednesday, February 4, 2015

    Artifactory Version 3.5.1 released today with support for the Oracle Maven Repository.

    You can read here how to configure it:

    http://www.jfrog.com/confluence/display/RTF/Advanced+Settings#AdvancedSettings-UsingOracleMavenRepository


  • Yossi Shaul Wednesday, February 4, 2015

    Artifactory Version 3.5.1 released today with support for the Oracle Maven Repository.

    You can read here how to configure it:

    http://www.jfrog.com/confluence/display/RTF/Advanced+Settings#AdvancedSettings-UsingOracleMavenRepository


  • Steve Buttuo Thursday, February 5, 2015

    Thanks Yossi, that is most excellent news! Thanks for letting us know.


  • Ladislav Jech Tuesday, February 10, 2015

    Hi,

    Sonatype Nexus ready

    although not officially released, I went trough all dependencies and compiled already released source code of nexus-2.11.2-01 into binary bundle currently available here:

    https://github.com/archenroot/nexus-oss/releases/tag/nexus-2.11.2-01

    So Oracle maven repo should be supported now.

    List of issues fixed:

    https://issues.sonatype.org/browse/NEXUS/fixforversion/14525/?selectedTab=com.atlassian.jira.jira-projects-plugin:version-summary-panel


  • Steve Button Wednesday, February 11, 2015

    Thanks for the update and links Ladislav - that is most excellent news!

    Is there a timeframe for the official release to be done?


  • Ladislav Jech Wednesday, February 11, 2015

    Unfortunatelly I wasn't able to get this info, also was interested...

    The road map doesn't specify it, available available at:

    https://issues.sonatype.org/browse/NEXUS/?selectedTab=com.atlassian.jira.jira-projects-plugin:roadmap-panel

    Still with the provided guidelines it looks to me that it is still not fully supported as soon as I am only browse trough the index, but not remote storage, this I was already able to achieve in previous version :-))) so will discuss this with sonatype dev team in JIRA again...


  • rp Wednesday, February 25, 2015

    Hi,

    How can I download the following jars from the oracle maven repository?

    oxquery.jar

    xqjapi.jar

    orai18n-mapping.jar

    xmlparserv2.jar

    apache-xmlbeans.jar

    antlr-runtime.jar

    Please note that I have configured oracle maven repository in my maven setting.


  • Ladislav Jech Thursday, March 12, 2015

    Sonatype finally released binaries of their version of Nexus supporting Oracle Maven repository. The version I compiled 2.11.2-01 they released only as source code.

    http://download.sonatype.com/nexus/oss/nexus-2.11.2-04-bundle.tar.gz

    Here is full list of fixed issues for this line:

    https://support.sonatype.com/entries/87851808-Sonatype-Nexus-2-11-2-Release-Notes


  • guest Monday, March 30, 2015

    The use of [oracle] auth for a maven repo is mindfucking... The downloaded pom are HTML with this message

    "The user has already reached the maximum allowed number of sessions. Please close one of the existing sessions before trying to login again."

    (I'm the only user of my credentials, the browser is offline, and I'm simply trying to compile a sample web service)


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.