How to integrate Maven in JDeveloper 11.1.1.7.0 - maven

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

You are using an 11g R1 release while JDev 11.1.2.0.0 is 11g R2. And then this comes into play:
With JDeveloper 11gR2 you can use Maven 2 as your build engine, before
11gR2 you could download a plugin which did not work great because all
the required Oracle libraries which were not available in a public
repository. So you had no choice to add them manually to a Maven
Repository before you can use Maven.
Source: http://biemond.blogspot.be/2011/06/building-with-maven-in-jdeveloper-11gr2.html
Side note: You won't be able to compile your application using maven on a server without JDeveloper installed on it because Oracle doesn't provide a maven repository containing the ADF libraries (an option is to add the ADF libs to your own repo).

Related

AEM project release build

I am interested to see how people are doing release builds for an AEM project:
using the maven release plugin that is in pom.xml OOTB for this archtype
custom process using other maven plugins (build-helper plugin, version plugin)
Pros/cons for each option?
what is the release numbering mechanism that you use?
how is the patching done?
do you use a release branching mechanism?
Thanks
The OOTB maven build configuration from the archetype is good enough and extensively used across all the AEM projects I have been involved in. The versioning can be handled by modifying the version in the pom.xml

JDeveloper and gradle integration

I am completly new in Oracles JDeveloper.
I am looking at different IDE alternatives, does JDeveloper have any form of gradle support?

Maven - Missing archetype in STS (Eclipse) for Oracle Coherence

I am trying to follow this tutorial to develop an Oracle Coherence project in Maven:
https://docs.oracle.com/middleware/1212/core/MAVEN/coherence_project.htm#MAVEN8911
I have installed in my Spring Tool Suit (Eclipse) the following plugin:
Oracle Coherence Tools
Tools for developing applications for Oracle Coherence. These features are also part of Oracle Enterprise Pack for Eclipse (OEPE)
But when I try to create a Maven project, in the list Archetypes I can't find
any with groupID = com.oracle.coherence
Anyone could tell me what am I missing?
due to oracle coherence is not in the public maven repository. you should first install the coherence to your local maven repository or use the oracle maven repository instead
Oracle Coherence Tools are not such important. You can use standard Eclipse or Netbeans, IntelliJ... The most important (as xukai mentioned) is to insatll coherence and add dependency to coherence.jar in your pom.

How to automate TC Server war deployment

I download TC server STANDARD edition on my computer because this is the installed one on QA servers. My final goal is to write a maven task to deploy a war app in a distant tc server's instance.
Because of the use of the standard edition, tomcat manager is not pre-installed (so I cannot use maven's cargo plugin anymore).
So is there any method to deploy my jar in a distant server instance without putting it manually in webapp folder ?
Thanks in advance !
Here are a several options:
1) Our latest release 3.2.x (standard) introduced the tomcat-manager template which will set up the Manager webapp and secure it for a production environment.
2) You can also use the developer edition of tc Server. If it is the same version it will be nearly identical, it just will not contain some of the templates in the standard edition.
3) Add a maven target that copies the Manager webapp to the webapps folder.

Maven plugin for RAD 7.5.5

i have to migrate some project from Eclipse to RAD 7.5.5
Now i'm trying to install a maven plugin like i had on Eclipse, but i can't find it, i tried
http://repository.sonatype.org/content/sites/forge-sites/m2e
http://m2eclipse.sonatype.org/sites/m2e-e34/
http://m2eclipse.sonatype.org/sites/m2e
http://download.eclipse.org/technology/m2e/releases
those sites that i found on web when i go for:
Help>Software Updates>Aviable Software>Add sites
gives to me "no repository found"
So i need a working repository to install Maven.
I found that this maven/rad version is very aged, so it can be hard to find now.
Any .zip file will be fine also.
First of all, RAD 7.5.x is not supported anymore by IBM (EOS dated on September 30, 2014), so my first advice is to move up to a newer version and I have the feeling that RAD includes Maven support since 8.5.1. Latest version out there is 9.1.1.
http://www-01.ibm.com/software/support/lifecycleapp/PLCDetail.wss?synkey=W170532D29019M02-L603472G19375Q17-M054243E02973V75
Second, honestly I don't recall which version of Eclipse is used in RAD 7.5.x. If it is older than Eclipse 3.6 then I don't think there is any integration for it. Try this repo
http://download.eclipse.org/m2e-wtp/releases/juno/
Here is the M2E for WTP site in Eclipse Marketplace
http://marketplace.eclipse.org/content/maven-integration-eclipse-wtp-juno-0#.VIHEs10S1hg

Resources