jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x Eclipse Plugin
  • Maven 2.x Eclipse Plugin
  • MECLIPSE-137

Developed RAD-6 Plugin Extention

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.3
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    5

Description

I just finisched developing a RAD-6 (IBM Rational Application Developer 6.0) extention to the eclipse plugin.
It supports J2EE projects with the websphere development envorment, supported are

  • EJB projects
  • Web projects
  • EAR- projects
    all these projects are recognized by rad-6 as what they. The websphere development enviorment including hot-deployment features funktions out of the box.
    i wrote writers for:
  • the ".j2ee" files
  • the "application.xml" and the "modulemaps" file
  • copying the extrenal libs in the ear project root
  • adapting the MANIFEST.MF of the projects (nessesary for the websphere development enviorment)
  • the ".websettings" file
  • the ".websiteconfig" file
  • the ".project" (only alternative project natures/builders)

do you want to include it the the eclipse plugin or sould it be an extra plugin? i should not be complicated to include it because i did the real work in writer-classes.
should i add a tgz with the sources? or how do you want the sources?

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. GZip Archive
    maven-rad-plugin.tar.gz
    02/Aug/06 2:56 AM
    63 kB
    Richard van Nieuwenhoven
  2. Hide
    Zip Archive
    maven-rad-plugin.zip
    28/Sep/06 3:15 AM
    114 kB
    Richard van Nieuwenhoven
    1. File
      maven-rad-plugin/.cvsignore 0.1 kB
    2. File
      maven-rad-plugin/.project 0.3 kB
    3. XML File
      maven-rad-plugin/checkstyle.xml 8 kB
    4. XML File
      maven-rad-plugin/pom.xml 5 kB
    5. Java Source File
      maven-rad-plugin/src/.../Rad6Clean.java 4 kB
    6. Java Source File
      maven-rad-plugin/src/.../Rad6Plugin.java 13 kB
    7. Java Source File
      maven-rad-plugin/src/.../rad/Messages.java 2 kB
    8. Java Source File
      maven-rad-plugin/.../Rad6ApplicationXMLWriter.java 21 kB
    9. Java Source File
      maven-rad-plugin/.../Rad6EjbClasspathWriter.java 8 kB
    10. Java Source File
      maven-rad-plugin/src/.../Rad6J2EEWriter.java 4 kB
    11. Java Source File
      maven-rad-plugin/src/.../Rad6LibCopier.java 5 kB
    12. Java Source File
      maven-rad-plugin/.../Rad6ManifestWriter.java 10 kB
    13. Java Source File
      maven-rad-plugin/.../Rad6WebSettingsWriter.java 6 kB
    14. Java Source File
      maven-rad-plugin/.../Rad6WebsiteConfigWriter.java 3 kB
    15. Java Source File
      maven-rad-plugin/.../EclipseCleanMojo.java 5 kB
    16. Java Source File
      maven-rad-plugin/src/.../EclipsePlugin.java 23 kB
    17. Java Source File
      maven-rad-plugin/.../AbstractIdeSupportMojo.java 22 kB
    18. File
      maven-rad-plugin/src/.../messages.properties 2 kB
    19. Java Source File
      maven-rad-plugin/.../AbstractRadPluginTestCase.java 3 kB
    20. Java Source File
      maven-rad-plugin/.../EclipsePluginTest.java 9 kB
    21. Java Source File
      maven-rad-plugin/.../AbstractEclipsePluginTestCase.java 8 kB
    22. File
      maven-rad-plugin/src/.../m2repo/.cvsignore 0.0 kB
    23. XML File
      maven-rad-plugin/.../maven-metadata-local.xml 0.3 kB
    24. Java Archive File
      maven-rad-plugin/.../maven-rad-plugin-0.0.1-SNAPSHOT.jar 27 kB
    25. File
      maven-rad-plugin/.../maven-rad-plugin-0.0.1-SNAPSHOT.pom 5 kB
    26. XML File
      maven-rad-plugin/.../maven-metadata-central.xml 0.2 kB
    27. XML File
      maven-rad-plugin/.../maven-metadata-local.xml 0.4 kB
    28. Java Archive File
      maven-rad-plugin/.../deps-direct-compile-1.0.jar 0.0 kB
    29. File
      maven-rad-plugin/.../deps-direct-compile-1.0.pom 0.3 kB
    30. Java Archive File
      maven-rad-plugin/.../deps-direct-optional-1.0.jar 0.0 kB
    Showing 30 of 134 items Download Zip
    Show
    Zip Archive
    maven-rad-plugin.zip
    28/Sep/06 3:15 AM
    114 kB
    Richard van Nieuwenhoven
  3. Hide
    Zip Archive
    maven-rad-plugin-WebContent.zip
    25/Oct/06 3:07 AM
    138 kB
    Lee Jonas
    1. File
      maven-rad-plugin/.classpath 7 kB
    2. File
      maven-rad-plugin/.cvsignore 0.0 kB
    3. File
      maven-rad-plugin/.project 0.5 kB
    4. XML File
      maven-rad-plugin/checkstyle.xml 8 kB
    5. File
      maven-rad-plugin/maven rad plugin.launch 0.8 kB
    6. XML File
      maven-rad-plugin/pom.xml 6 kB
    7. Java Source File
      maven-rad-plugin/src/.../rad/Messages.java 2 kB
    8. Java Source File
      maven-rad-plugin/.../Rad6ApplicationXMLWriter.java 17 kB
    9. Java Source File
      maven-rad-plugin/.../Rad6EjbClasspathWriter.java 4 kB
    10. Java Source File
      maven-rad-plugin/src/.../Rad6J2EEWriter.java 4 kB
    11. Java Source File
      maven-rad-plugin/src/.../Rad6LibCopier.java 5 kB
    12. Java Source File
      maven-rad-plugin/.../Rad6ManifestWriter.java 5 kB
    13. Java Source File
      maven-rad-plugin/.../Rad6WebSettingsWriter.java 5 kB
    14. Java Source File
      maven-rad-plugin/.../Rad6WebsiteConfigWriter.java 3 kB
    15. Java Source File
      maven-rad-plugin/src/.../Rad6Clean.java 4 kB
    16. Java Source File
      maven-rad-plugin/src/.../Rad6Plugin.java 10 kB
    17. Java Source File
      maven-rad-plugin/.../EclipseCleanMojo.java 5 kB
    18. Java Source File
      maven-rad-plugin/src/.../EclipsePlugin.java 23 kB
    19. Java Source File
      maven-rad-plugin/.../AbstractIdeSupportMojo.java 22 kB
    20. File
      maven-rad-plugin/src/.../messages.properties 2 kB
    21. XML File
      maven-rad-plugin/src/.../maven/plugin.xml 12 kB
    22. Java Source File
      maven-rad-plugin/.../AbstractRadPluginTestCase.java 3 kB
    23. Java Source File
      maven-rad-plugin/.../EclipsePluginTest.java 9 kB
    24. Java Source File
      maven-rad-plugin/.../AbstractEclipsePluginTestCase.java 8 kB
    25. File
      maven-rad-plugin/src/.../m2repo/.cvsignore 0.0 kB
    26. XML File
      maven-rad-plugin/.../maven-metadata-local.xml 0.3 kB
    27. Java Archive File
      maven-rad-plugin/.../maven-rad-plugin-0.0.1-SNAPSHOT.jar 27 kB
    28. File
      maven-rad-plugin/.../maven-rad-plugin-0.0.1-SNAPSHOT.pom 5 kB
    29. XML File
      maven-rad-plugin/.../maven-metadata-central.xml 0.2 kB
    30. XML File
      maven-rad-plugin/.../maven-metadata-local.xml 0.4 kB
    Showing 30 of 137 items Download Zip
    Show
    Zip Archive
    maven-rad-plugin-WebContent.zip
    25/Oct/06 3:07 AM
    138 kB
    Lee Jonas
  4. Text File
    MECLIPSE-137-maven-eclipse-plugin.patch
    27/Nov/06 11:54 AM
    11 kB
    Lee Jonas
  5. Hide
    Zip Archive
    MECLIPSE-137-maven-rad-plugin.zip
    19/Dec/06 10:40 PM
    42 kB
    Brandon Burk
    1. Java Source File
      src/main/.../eclipse/EclipseCleanMojo.java 5 kB
    2. Java Source File
      src/main/java/.../eclipse/EclipsePlugin.java 27 kB
    3. Java Source File
      src/main/.../ide/AbstractIdeSupportMojo.java 27 kB
    4. Java Source File
      src/main/java/.../plugin/Rad6Clean.java 5 kB
    5. Java Source File
      src/main/java/.../plugin/Rad6Plugin.java 12 kB
    6. Java Source File
      src/main/java/.../plugin/rad/Messages.java 2 kB
    7. Java Source File
      src/main/.../writer/AbstractRad6Writer.java 6 kB
    8. Java Source File
      src/main/.../Rad6ApplicationXMLWriter.java 23 kB
    9. Java Source File
      src/main/.../writer/Rad6CvsIgnoreWriter.java 9 kB
    10. Java Source File
      src/main/.../Rad6EjbClasspathWriter.java 8 kB
    11. Java Source File
      src/main/java/.../writer/Rad6J2EEWriter.java 5 kB
    12. Java Source File
      src/main/java/.../writer/Rad6LibCopier.java 5 kB
    13. Java Source File
      src/main/.../writer/Rad6ManifestWriter.java 5 kB
    14. Java Source File
      src/main/.../Rad6WarClasspathWriter.java 5 kB
    15. Java Source File
      src/main/.../Rad6WebSettingsWriter.java 5 kB
    16. Java Source File
      src/main/.../Rad6WebsiteConfigWriter.java 4 kB
    17. File
      src/main/.../rad/messages.properties 2 kB
    Download Zip
    Show
    Zip Archive
    MECLIPSE-137-maven-rad-plugin.zip
    19/Dec/06 10:40 PM
    42 kB
    Brandon Burk

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Richard van Nieuwenhoven added a comment - 02/Aug/06 2:56 AM

sorry that it took so long but i was not at work...

this is the tarball with the plugin.
some hints for RAD6 users

  • do not use java classes in a war project, put all java classes in dependent projects
  • best thing to do is to make all jars in the war project provided and put them in the ear dependencys
  • there will be a classpath directory included in ejb projects here you can put your generated ejb classes for nor i use the websphere-ant jobs in the project-pom to generate them. (in the package phase overwiting the jar and the client-jar and copieing the classes to the classes-folder included by this plugin, the ant-job does not generate the java files...)
  • the META-INF of the ejb project MUST!!! be a toplevel folder so include this top-level-folder in your resources list of the pom (the java files can stay in src/main/java
  • don't forget to fill the ".cvsignore" files especialy the jar's and wars in the ear-project's and the war-project's

regards,
Ritchie

Show
Richard van Nieuwenhoven added a comment - 02/Aug/06 2:56 AM sorry that it took so long but i was not at work... this is the tarball with the plugin. some hints for RAD6 users do not use java classes in a war project, put all java classes in dependent projects best thing to do is to make all jars in the war project provided and put them in the ear dependencys there will be a classpath directory included in ejb projects here you can put your generated ejb classes for nor i use the websphere-ant jobs in the project-pom to generate them. (in the package phase overwiting the jar and the client-jar and copieing the classes to the classes-folder included by this plugin, the ant-job does not generate the java files...) the META-INF of the ejb project MUST!!! be a toplevel folder so include this top-level-folder in your resources list of the pom (the java files can stay in src/main/java don't forget to fill the ".cvsignore" files especialy the jar's and wars in the ear-project's and the war-project's regards, Ritchie
Hide
Permalink
Eugene Kuleshov added a comment - 30/Aug/06 8:27 PM

There is no plans to support RAD in m2eclipse plugin.
You may suggest this for adding into maven-eclipse plugin that runs from the command line.

Show
Eugene Kuleshov added a comment - 30/Aug/06 8:27 PM There is no plans to support RAD in m2eclipse plugin. You may suggest this for adding into maven-eclipse plugin that runs from the command line.
Hide
Permalink
Eric Frigot added a comment - 26/Sep/06 3:40 AM

Sorry but i don't understand how to use your archive.

What is the way to use it ?

Show
Eric Frigot added a comment - 26/Sep/06 3:40 AM Sorry but i don't understand how to use your archive. What is the way to use it ?
Hide
Permalink
Mike Reynolds added a comment - 27/Sep/06 11:34 AM

to install this plugin (at least at the time of this post), you must first comment out all of the existing repository configurations (there are 5 I believe...just do a search for "central" in the project..)

after you have it installed into your local m2 repository, you can run:

at.uniqa.maven.plugin:maven-rad-plugin:clean
at.uniqa.maven.plugin:maven-rad-plugin:rad6

It doesn't look like this project supports portlet development yet...can I help? I'd imagine the update would be pretty trivial (since web projects already are working)

Show
Mike Reynolds added a comment - 27/Sep/06 11:34 AM to install this plugin (at least at the time of this post), you must first comment out all of the existing repository configurations (there are 5 I believe...just do a search for "central" in the project..) after you have it installed into your local m2 repository, you can run: at.uniqa.maven.plugin:maven-rad-plugin:clean at.uniqa.maven.plugin:maven-rad-plugin:rad6 It doesn't look like this project supports portlet development yet...can I help? I'd imagine the update would be pretty trivial (since web projects already are working)
Hide
Permalink
Richard van Nieuwenhoven added a comment - 28/Sep/06 3:15 AM

I have not much time to spend for support on this plugin, i made/appened it for a customer (UNIQA Austria).

But still any extentions are welcome, and as long as there is no own project and it is not integerated in the eclipse plugin we should post them here. i have not the time to make and support a seperate project.

Because the project (i worked on) ended successfuly, i do not work on this plugin anymore (for now). Please feel free to contact me, i will give you an email kontact of the responsible person in UNIQA Austria. They are happy to meet and work together with others also using Maven-2, RAD6 and websphere. They also ported or working on porting a lot of the was-5/6 admin ant tasks to maven-2 goals for websphere-6 integration tests.

in this updated version i deleted the localreposetorys (sorry for that) so it should build anywhere now.

Show
Richard van Nieuwenhoven added a comment - 28/Sep/06 3:15 AM I have not much time to spend for support on this plugin, i made/appened it for a customer (UNIQA Austria). But still any extentions are welcome, and as long as there is no own project and it is not integerated in the eclipse plugin we should post them here. i have not the time to make and support a seperate project. Because the project (i worked on) ended successfuly, i do not work on this plugin anymore (for now). Please feel free to contact me, i will give you an email kontact of the responsible person in UNIQA Austria. They are happy to meet and work together with others also using Maven-2, RAD6 and websphere. They also ported or working on porting a lot of the was-5/6 admin ant tasks to maven-2 goals for websphere-6 integration tests. in this updated version i deleted the localreposetorys (sorry for that) so it should build anywhere now.
Hide
Permalink
Eric Frigot added a comment - 12/Oct/06 10:22 AM

Thank you for your answer Mike.

Working with RAD6 on dynamic web project, i meet various difficulties. Here is my process :
1- Creation of a dynamic web project inside RAD6 using the project Wizard.
2- Using Maven to import our specific resources (img, css, xml, jsp ...) with an archetype:create goal. After that, i have a pom.xml at the root of my project.
3- Using Maven and your rad6 goal to update .classpath and other resources for RAD6.

At this step, i don't understand why your goal create a src/main/webapp directory in which are placed all the dependencies mentionned in the pom.xml. I know that this is the Maven structure. But when i deploy (with RAD6) my project to WebSphere, the dependencies are not copied. For RAD6, dependencies, web.xml and all you need for the war are in the WebContent directory.

So, is there something i missed ?

Show
Eric Frigot added a comment - 12/Oct/06 10:22 AM Thank you for your answer Mike. Working with RAD6 on dynamic web project, i meet various difficulties. Here is my process : 1- Creation of a dynamic web project inside RAD6 using the project Wizard. 2- Using Maven to import our specific resources (img, css, xml, jsp ...) with an archetype:create goal. After that, i have a pom.xml at the root of my project. 3- Using Maven and your rad6 goal to update .classpath and other resources for RAD6. At this step, i don't understand why your goal create a src/main/webapp directory in which are placed all the dependencies mentionned in the pom.xml. I know that this is the Maven structure. But when i deploy (with RAD6) my project to WebSphere, the dependencies are not copied. For RAD6, dependencies, web.xml and all you need for the war are in the WebContent directory. So, is there something i missed ?
Hide
Permalink
Richard van Nieuwenhoven added a comment - 13/Oct/06 6:41 AM

Hi,

you did it the wrong way around, at least as i do it. this plugin is
designed to work the maven way and adapting the project in such a
way that it also works in RAD-6. So there should NOT be a "WebContent"
directory there should be "src/main/webapp" as a webcontent.

all dependent libraries are copied into src/main/webapp/WEB-INF/lib .
this directory should be ignored in scm.

regards,
Ritchie

Show
Richard van Nieuwenhoven added a comment - 13/Oct/06 6:41 AM Hi, you did it the wrong way around, at least as i do it. this plugin is designed to work the maven way and adapting the project in such a way that it also works in RAD-6. So there should NOT be a "WebContent" directory there should be "src/main/webapp" as a webcontent. all dependent libraries are copied into src/main/webapp/WEB-INF/lib . this directory should be ignored in scm. regards, Ritchie
Hide
Permalink
Lee Jonas added a comment - 25/Oct/06 3:06 AM

Unfortunately, I can't seem to get the WebService creation wizard in RAD 6.0.1.1 (Interim fix 002) working with the webSourceDirectory set to src/main/webapp .

I have attached an alternative version that works with the WebContent dir. (NB: both warSourceDirectory and webXml configuration properties must be set accordingly on the maven-war-plugin also).

regards
Lee

Show
Lee Jonas added a comment - 25/Oct/06 3:06 AM Unfortunately, I can't seem to get the WebService creation wizard in RAD 6.0.1.1 (Interim fix 002) working with the webSourceDirectory set to src/main/webapp . I have attached an alternative version that works with the WebContent dir. (NB: both warSourceDirectory and webXml configuration properties must be set accordingly on the maven-war-plugin also). regards Lee
Hide
Permalink
Lee Jonas added a comment - 25/Oct/06 3:07 AM

Alternative version of this plugin that uses the WebContent directory for web content files.

Show
Lee Jonas added a comment - 25/Oct/06 3:07 AM Alternative version of this plugin that uses the WebContent directory for web content files.
Hide
Permalink
John Casey added a comment - 25/Oct/06 8:09 AM

Can you please rework this contribution as a patch to the maven-eclipse-plugin? RAD is based on Eclipse, so it would be best to integrate this support with that plugin.

Show
John Casey added a comment - 25/Oct/06 8:09 AM Can you please rework this contribution as a patch to the maven-eclipse-plugin? RAD is based on Eclipse, so it would be best to integrate this support with that plugin.
Hide
Permalink
Richard van Nieuwenhoven added a comment - 25/Oct/06 9:49 AM

Thats getting difficult... and i do not have the time to do this right now.. (it was based on an 4 months old version of eclipse:eclipse )..

But almost all differences are all in additional workers. (by intended design of the eclipse plugin) .

Some of these workers i copied for my wtp 1.5 patch that i posted a while ago, i had the some same problems there as i had in RAD6.

When you realy need a rework as a patch, i can send you the contact in the company for whom i made the plugin (UNIQA).
maybe they have some resources free for rework (when it realy gets integerated in the official version of eclipse:eclipse).

.

Show
Richard van Nieuwenhoven added a comment - 25/Oct/06 9:49 AM Thats getting difficult... and i do not have the time to do this right now.. (it was based on an 4 months old version of eclipse:eclipse ).. But almost all differences are all in additional workers. (by intended design of the eclipse plugin) . Some of these workers i copied for my wtp 1.5 patch that i posted a while ago, i had the some same problems there as i had in RAD6. When you realy need a rework as a patch, i can send you the contact in the company for whom i made the plugin (UNIQA). maybe they have some resources free for rework (when it realy gets integerated in the official version of eclipse:eclipse). .
Hide
Permalink
John Casey added a comment - 31/Oct/06 11:06 AM

I'm working on porting this to the eclipse plugin. I've got the implementation ported, but I'm still working through some issues with testing...I'll be committing to http://svn.apache.org/repos/asf/maven/plugins/branches/MECLIPSE-137 until I get this resolved.

Show
John Casey added a comment - 31/Oct/06 11:06 AM I'm working on porting this to the eclipse plugin. I've got the implementation ported, but I'm still working through some issues with testing...I'll be committing to http://svn.apache.org/repos/asf/maven/plugins/branches/MECLIPSE-137 until I get this resolved.
Hide
Permalink
Girish Khemani added a comment - 17/Nov/06 6:35 AM

RAD 7 is round the corner. My company might roll out RAD 7 as soon as it gets available.
Given that this plugin was specifically tailored for RAD 6, is it likely that this plugin might not work for RAD 7.

Show
Girish Khemani added a comment - 17/Nov/06 6:35 AM RAD 7 is round the corner. My company might roll out RAD 7 as soon as it gets available. Given that this plugin was specifically tailored for RAD 6, is it likely that this plugin might not work for RAD 7.
Hide
Permalink
Richard van Nieuwenhoven added a comment - 17/Nov/06 8:42 AM

to Girish Khemani:
Yes probably because RAD-6 is based on eclipse 3.0 and RAD-7 will be based on eclipse 3.2

It is just the question how mutch of IBM's special stull they left over.... I also posted some fixes for the eclipse-plugin for eclipse 3.2 they were partly extracted from this RAD-6 plugin.

to John Casey:
the testing was copied from the original (old) eclipse-plugin and adaped to fit the RAD-6 needs, the structure of the test was rather bad but i did not have the time to resolve this testing problems. from what i read on the mailing lists the maven-plugin test enviorment has improved a lot. so it is probably the best to create new test cases.

Show
Richard van Nieuwenhoven added a comment - 17/Nov/06 8:42 AM to Girish Khemani: Yes probably because RAD-6 is based on eclipse 3.0 and RAD-7 will be based on eclipse 3.2 It is just the question how mutch of IBM's special stull they left over.... I also posted some fixes for the eclipse-plugin for eclipse 3.2 they were partly extracted from this RAD-6 plugin. to John Casey: the testing was copied from the original (old) eclipse-plugin and adaped to fit the RAD-6 needs, the structure of the test was rather bad but i did not have the time to resolve this testing problems. from what i read on the mailing lists the maven-plugin test enviorment has improved a lot. so it is probably the best to create new test cases.
Hide
Permalink
Lee Jonas added a comment - 27/Nov/06 7:59 AM

John,

The changes to the eclipse plugin so far retain the hard-coded path of src/main/webapp/.... Would it be possible to honour the configuration setting of the maven-war-plugin (or else enable us to specify this web resources directory path via a new maven-eclipse-plugin configuration setting)?

Show
Lee Jonas added a comment - 27/Nov/06 7:59 AM John, The changes to the eclipse plugin so far retain the hard-coded path of src/main/webapp/.... Would it be possible to honour the configuration setting of the maven-war-plugin (or else enable us to specify this web resources directory path via a new maven-eclipse-plugin configuration setting)?
Hide
Permalink
John Casey added a comment - 27/Nov/06 10:53 AM

Lee,

This should be pretty easy to expose as a configuration point. I'll take a quick look at that today, if you like.

Girish,

I was actually hoping that, once we had some file formats to look at, we could devise a plan to support both RAD versions. I'm not sure whether this will require parallel implementations within the maven-eclipse-plugin or not (haven't seen the file formats...), but either way, I think it's going to be important to support both, since many people won't be switching overnight.

Richard,

I think I managed to understand the tests well enough in there to rework them into the new testing format...I'm not 100% sure, but as I understand things, they are testing the functionality in question. Please let me know if you find this statement to be incorrect.

Show
John Casey added a comment - 27/Nov/06 10:53 AM Lee, This should be pretty easy to expose as a configuration point. I'll take a quick look at that today, if you like. Girish, I was actually hoping that, once we had some file formats to look at, we could devise a plan to support both RAD versions. I'm not sure whether this will require parallel implementations within the maven-eclipse-plugin or not (haven't seen the file formats...), but either way, I think it's going to be important to support both, since many people won't be switching overnight. Richard, I think I managed to understand the tests well enough in there to rework them into the new testing format...I'm not 100% sure, but as I understand things, they are testing the functionality in question. Please let me know if you find this statement to be incorrect.
Hide
Permalink
Lee Jonas added a comment - 27/Nov/06 11:54 AM

John,

I have attached a patch file containing an initial attempt at honouring the warSourceDirectory setting on the maven-war-plugin, based on something done elsewhere in the maven-eclipse-plugin.

It also contains a modification to the RadWebSettingsWriter to include referenced projects within the same RAD workspace - they were not getting loaded when launching the web app in a test server.

regards
Lee

Show
Lee Jonas added a comment - 27/Nov/06 11:54 AM John, I have attached a patch file containing an initial attempt at honouring the warSourceDirectory setting on the maven-war-plugin, based on something done elsewhere in the maven-eclipse-plugin. It also contains a modification to the RadWebSettingsWriter to include referenced projects within the same RAD workspace - they were not getting loaded when launching the web app in a test server. regards Lee
Hide
Permalink
Brandon Burk added a comment - 19/Dec/06 10:40 PM

This file contains the changes my organization needed. This includes several months of bug fixes and feature additions so I'll hit the highlights, and these are from memory as I am doing this from home and not on company time.

Primary bug fix (that I can remember)...
– Rad6ApplicationXMLWriter.java:
changed:
private static final String XMLNS_SCHEMA_LOCATION = "xmlns:schemaLocation";
to:
private static final String XMLNS_SCHEMA_LOCATION = "xsi:schemaLocation";

Primary functionality changes (that I can remember)...

Added...
– AbstractRad6Writer.java:
This class provides some functionality that I found myself needing in several of the other writers. Things such as:
getMetaInfDirectory()
getWarSourceDirectory()
getJ2eeSpecVersion()
getWarContextRoot() - this one was interesting... could probably be written better but seems to work nicely. I don't know a better way to share configuration information between plugins (i.e. maven-war-plugin looking something up from the maven-ear-plugin of a sibling project)

Added...
– Rad6CvsIgnoreWriter.java:
This class creates or appends to the .cvsignore files for CVS projects. My organization needed this for easier transition to using the plugin as we had hundreds of projects with the Eclipse/RAD specific configuration files checked into CVS. Now that the Eclipse/RAD plugin so lovingly configures all these files dynamically we had lots of questions from users wondering if they needed to commit their "dot" files back to CVS every time they ran the plugin. My goal was to keep all that junk out of version control and let the POM+Eclipse/RAD plugin abstract away the details of IDE configuration. This will add things like "target" ".*" "MANIFEST.MF" to the appropriate .cvsignore files in the projects. This functionality could be equally necessary for subversion or other version control systems. Also the ability to enable/disable this feature is needed for users who don't use CVS, I have not implemented that.

Modified...
– Rad6ApplicationXMLWriter.java
Added support for multiple J2EE specification versions (i.e. 1.3 as well as the default of 1.4).
createNewApplicationXml() will now create the appropriate 1.3 spec application.xml
Added support for custom WAR context roots to be maintained.
updateApplicationXml() uses getWarContextRoot() from the AbstractRad6Writer

– Rad6J2EEWriter.java
Added support for multiple J2EE specification versions (i.e. 1.3 as well as the default 1.4).
writeModuleTypeFacetCore() will now write the .j2ee file specific to the j2eeSpecVersion

– Rad6ManifestWriter.java
Refactored to take advantage of the AbstractRad6Writer.getMetaInfDirectory()

– Rad6WarClasspathWriter.java
Refactored to take advantage of the AbstractRad6Writer.getRelativeWebInfDirectory()

– Rad6WebSettingsWriter.java
writeModuleTypeFacetCore() updated to use getWarContextRoot() instead of hardcoding the artifactId and use the AbstractRad6Writer.getRelativeWarSourceDirectory()

I hope this helps anyones struggling with similar issues.

Show
Brandon Burk added a comment - 19/Dec/06 10:40 PM This file contains the changes my organization needed. This includes several months of bug fixes and feature additions so I'll hit the highlights, and these are from memory as I am doing this from home and not on company time. Primary bug fix (that I can remember)... – Rad6ApplicationXMLWriter.java: changed: private static final String XMLNS_SCHEMA_LOCATION = "xmlns:schemaLocation"; to: private static final String XMLNS_SCHEMA_LOCATION = "xsi:schemaLocation"; Primary functionality changes (that I can remember)... Added... – AbstractRad6Writer.java: This class provides some functionality that I found myself needing in several of the other writers. Things such as: getMetaInfDirectory() getWarSourceDirectory() getJ2eeSpecVersion() getWarContextRoot() - this one was interesting... could probably be written better but seems to work nicely. I don't know a better way to share configuration information between plugins (i.e. maven-war-plugin looking something up from the maven-ear-plugin of a sibling project) Added... – Rad6CvsIgnoreWriter.java: This class creates or appends to the .cvsignore files for CVS projects. My organization needed this for easier transition to using the plugin as we had hundreds of projects with the Eclipse/RAD specific configuration files checked into CVS. Now that the Eclipse/RAD plugin so lovingly configures all these files dynamically we had lots of questions from users wondering if they needed to commit their "dot" files back to CVS every time they ran the plugin. My goal was to keep all that junk out of version control and let the POM+Eclipse/RAD plugin abstract away the details of IDE configuration. This will add things like "target" ".*" "MANIFEST.MF" to the appropriate .cvsignore files in the projects. This functionality could be equally necessary for subversion or other version control systems. Also the ability to enable/disable this feature is needed for users who don't use CVS, I have not implemented that. Modified... – Rad6ApplicationXMLWriter.java Added support for multiple J2EE specification versions (i.e. 1.3 as well as the default of 1.4). createNewApplicationXml() will now create the appropriate 1.3 spec application.xml Added support for custom WAR context roots to be maintained. updateApplicationXml() uses getWarContextRoot() from the AbstractRad6Writer – Rad6J2EEWriter.java Added support for multiple J2EE specification versions (i.e. 1.3 as well as the default 1.4). writeModuleTypeFacetCore() will now write the .j2ee file specific to the j2eeSpecVersion – Rad6ManifestWriter.java Refactored to take advantage of the AbstractRad6Writer.getMetaInfDirectory() – Rad6WarClasspathWriter.java Refactored to take advantage of the AbstractRad6Writer.getRelativeWebInfDirectory() – Rad6WebSettingsWriter.java writeModuleTypeFacetCore() updated to use getWarContextRoot() instead of hardcoding the artifactId and use the AbstractRad6Writer.getRelativeWarSourceDirectory() I hope this helps anyones struggling with similar issues.
Hide
Permalink
ulf a added a comment - 16/Jan/07 2:18 AM

Hi,

i try to use this plugin, but i have no clue in which order i have to use the packages above. When i only use maven-rad-plugin.tar.gz then the test will fail. When i also use the MECLIPSE-137-maven-rad-plugin.zip than nothing works. Can anybody explain me how to do it in the right way?

Thanx,
Ulf

Show
ulf a added a comment - 16/Jan/07 2:18 AM Hi, i try to use this plugin, but i have no clue in which order i have to use the packages above. When i only use maven-rad-plugin.tar.gz then the test will fail. When i also use the MECLIPSE-137 -maven-rad-plugin.zip than nothing works. Can anybody explain me how to do it in the right way? Thanx, Ulf
Hide
Permalink
Richard van Nieuwenhoven added a comment - 18/Jan/07 7:48 AM

as far as i can see thes plugin is integrated in maven-eclipse-plugin-2.3 so use that one

Show
Richard van Nieuwenhoven added a comment - 18/Jan/07 7:48 AM as far as i can see thes plugin is integrated in maven-eclipse-plugin-2.3 so use that one
Hide
Permalink
M. Hansen added a comment - 21/Feb/07 5:50 AM

You are right, the plugin is apparently integrated in version 2.3. I found some documentation here:

http://maven.apache.org/plugins/maven-eclipse-plugin/rad-mojo.html

and apparently the plugin works (at least I can create some rad project files).

Shouldn't this jira issue be updated to indicate this fact?

What about RAD 7?

Show
M. Hansen added a comment - 21/Feb/07 5:50 AM You are right, the plugin is apparently integrated in version 2.3. I found some documentation here: http://maven.apache.org/plugins/maven-eclipse-plugin/rad-mojo.html and apparently the plugin works (at least I can create some rad project files). Shouldn't this jira issue be updated to indicate this fact? What about RAD 7?
Hide
Permalink
Carlos Sanchez added a comment - 13/Mar/07 6:20 PM

Seems that John fixed this in 2.3 and forgot to close

Show
Carlos Sanchez added a comment - 13/Mar/07 6:20 PM Seems that John fixed this in 2.3 and forgot to close

People

  • Assignee:
    John Casey
    Reporter:
    Richard van Nieuwenhoven
Vote (7)
Watch (8)

Dates

  • Created:
    28/Jul/06 8:46 AM
    Updated:
    13/Mar/07 6:20 PM
    Resolved:
    13/Mar/07 6:20 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.