Maven and M2Eclipse support in Rational Application Developer v7.x and v8.x

Technote (FAQ)


Question

Are you allowed to include m2eclipse with IBM Rational Application Developer for WebSphere Software v8 and is Maven supported?

Cause

About to release Rational Application Developer v8 and you are looking for the ability to create Maven projects.

The following IBM developerWorks forum item discusses the GEF Zest requirement:
Install - M2Eclipse 0.10 cannot install
in which M2Eclipse 0.10 failed to install and the workspace log showed


"...

!ENTRY org.eclipse.equinox.p2.operations 4 0 2010-06-01 13:12:16.956

!MESSAGE Operation details

!SUBENTRY 1 org.eclipse.equinox.p2.director 4 1 2010-06-01 13:12:16.957

!MESSAGE Cannot complete the install because one or more required items could not be found.

!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2010-06-01 13:12:16.957

!MESSAGE Software being installed: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.maven.ide.eclipse.feature.feature.group 0.10.0.20100209-0800)

!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2010-06-01 13:12:16.957

!MESSAGE Missing requirement: Maven Integration for Eclipse (Editors) 0.10.0.20100209-0800 (org.maven.ide.eclipse.editor 0.10.0.20100209-0800) requires 'bundle org.eclipse.zest.core 0.0.0' but it could not be found

!SUBENTRY 2 org.eclipse.equinox.p2.director 4 1 2010-06-01 13:12:16.958

!MESSAGE Cannot satisfy dependency:

.."


Answer

There is no direct support for Maven or any third party / open source tool / plugin such as M2Eclipse in Rational Application Developer (RAD) v7.x or v8.0.x, that is not shipped with the product.

The third party (open source) M2Eclipse, if compatible with Eclipse 3.6.2 (in Rational Application Developer 8.0.2 ), should be installable and useable according to vendor (provider) instructions.

Rational Application Developer v7.5.x is based on Eclipse 3.4.2. For open source or third party plugins, you need to contact the provider for assistance.
For more general Eclipse plugin support details, refer to:
Rational Application Developer Support for third party and open-source Eclipse plugins and tools

M2Eclipse/M2E (Maven Integration for Eclipse) is shipped and supported with RAD 8.5.1 or higher. More on this later.




In the case of RAD v7.5.x or 8.0.x it may be possible to use a third party (open source) Maven, even if it is not supported by RAD. As an example, in the case of M2Eclipse ( Maven Integration for Eclipse ), a Maven implementation for Eclipse, these are examples of some of the items which the provider is responsible for as per these original "sonatype" provider links when the above error was reported:
The provider of m2eclipse or any other Maven plugin/implementation is responsible for any how-to, defect or install support (if any is available).
Note: In 2010, Sonatype announced that this project would be donated and incubated at Eclipse with a new name m2eclipse

For example, the above sonatype M2Eclipse "Installation Requirements" link showed this excerpt:

    "...

    - Rational Application Developer (RAD) or Rational Software Architect (RSA) 7.5 is a commercial product from IBM and is based on eclipse 3.4 (unsupported)

     

    ! If you are using RAD/RSA 7.5, install the "Graphical Editing Framework Zest Visualization Toolkit" under the most recent version of "GEF SDK" using the update site http://download.eclipse.org/tools/gef/updates/releases/ before you install m2eclipse.
    .."


Note: The gef update site url in the above excerpt is not active. Consider using:
GEF Downloads to find the latest updates or complete GEF.

The only exception to the provider being responsible, may be if the core Eclipse, J2EE/Java EE/WTP Tools or other tools provided in Rational Application Developer can be shown to be the cause of the problem.



GEF Zest Visualization is not provided or supported with Rational Application Developer v7.x or v8.x. It should not be confused with the Graphical Editing Framework GEF (org.eclipse.gef) plugin, which is provided. The vendor (provider) should be contacted for assistance. Rational Application Developer is only responsible for any suspected problems or defects that can be demonstrated as caused by the Eclipse or other tools that are shipped, and is not responsible for any Maven implementation, how-to or install assistance.

Java EE Development using Rational Application Developer 7.5.5 or 8.0.x with Maven:

The following developerWorks article on best practices using Maven in Rational Application Developer v7.5 (also applicable to v8), is useful and is provided as-is:

Rational Application Developer Wiki:
Java EE Development using Rational Application Developer 7.5.5 and Maven (pdf)

The article shows, for example, that for a dynamic web project in Rational Application Developer v7.5.5.x with Maven, is quite reasonable to have a Maven like structure specified in the dynamic web application create wizard (or as defaults in the workspace: Preferences > Java EE > Project):


    Default Source folder:
    src/main/java

    Output Folder:
    src/main/webapp/WEB-INF/classes

    Content Directory:
    src/main/webapp



Naturally, src/main/webapp/WEB-INF/lib contains jars. The article discusses much more, and is provided as is.

The following developerWorks article on using Maven Integration (m2e) - m2eclipse with Rational Application Developer 8.0.3+ is a follow-on to the above article. It has been revised and enhanced in v8.0.4. It is useful and is provided as is:

Rational Application Developer and M2Eclipse (pdf)

Similar to the previous article, Maven, the m2eclipse feature, and its extended connectors (including m2e-wtp) are not supported by IBM Rational Application Developer 8.0.x. The IBM developerWorks Rational forum: "Development Tools (RAD, RSA, RDA, RSM, RWD)", maybe another source of useful information on this topic.



For historical purposes, this older Rational Application Developer v6 article may be of interest:
Managing WebSphere Portal V5.1 projects with Apache Maven and Rational Application Developer 6.0.


M2Eclipse/M2E (Maven Integration for Eclipse) with RAD 8.5.1 or higher:

M2Eclipse/M2E (Maven Integration for Eclipse) is shipped and supported with RAD 8.5.1 or higher.
RAD only supports M2E as shipped and installed with the product. The Maven feature is not installed by default. It is necessary to select it when installing RAD 8.5.1 using IBM Installation Manager

Maven/M2E usage is documented in RAD v8.5.1 Info center item: Developing Maven projects.

These RAD 8.5.1+ articles/videos may be helpful:

Maven Development with Rational Application Developer and WebSphere Developer Tools for Eclipse V8.5.1

Using Maven Integration tools in IBM Rational Application Developer; a two part video series

Other:

IBM RAD is involved with the proposal/project:
- Maven Integration for Web Tools Platform
http://eclipse.org/proposals/technology.m2e.m2e-wtp/
, to enable Maven projects to be easily used in context of Eclipse WTP. Chuck Bridgham is the senior IBM mentor/representative.


Related information

devWorks Forum: Maven support?
Error FileNotFoundException when publishing MAVEN EAR
Sonatype has completed the transition of the M2Eclipse
(m2e)clipse
M2E wiki
Changing from m2eclipse to m2e (Eclipse 3.7 - Indigo)
Introduction to m2eclipse
Maven: The Complete Reference

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Application Developer for WebSphere Software
J2EE Tooling

Software version:

7.0, 7.0.0.1, 7.0.0.2, 7.0.0.3, 7.0.0.4, 7.0.0.5, 7.0.0.6, 7.0.0.7, 7.0.0.8, 7.0.0.9, 7.0.0.10, 7.5, 7.5.1, 7.5.2, 7.5.3, 7.5.4, 7.5.5, 7.5.5.1, 7.5.5.2, 7.5.5.3, 7.5.5.4, 8.0, 8.0.1, 8.0.2, 8.0.3

Operating system(s):

Linux, Windows

Reference #:

1500446

Modified date:

2013-09-26

Translate my page

Machine Translation

Content navigation