Details

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

      Description

      Currently the m2eclipse plugin can not cope with EAR projects. When given one, it actually attempts to set the project up as a java project. Given that WAR files generally live in EAR files, it would be natural to expect that an EAR project is supported.

      Additionally, for similar reasons, EJB projects should also be supported.

      1. MNGECLIPSE-688-preview-21082008.patch
        167 kB
        Fred Bricon

        Issue Links

          Activity

          Hide
          Fred Bricon added a comment -

          This is a Mavenized version of seam booking, designed to demonstrate m2eclipse EAR support.

          Due to a bug in WTP ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=248206), in order to deploy this application,
          you'll need JBoss Tools IDE 2.1.2.GA (http://www.jboss.org/tools/download/index.html).
          It's only compatible with Eclipse Europa. For Ganymede support, you can try JBoss Tools IDE 3.0.0 Alpha 1 (Wich I haven't tested)

          You'll need to build m2eclipse from trunk (as long as MNGECLIPSE-688 is not resolved)

          Integration Tests won't work, due to https://jira.jboss.org/jira/browse/JBSEAM-2371.
          If you want to package the project via mvn CLI, type :
          mvn package -Dmaven.test.skip

          To get it working in Eclipse WTP / Jboss Tools :

          • launch eclipse
          • Import the projects
          • left click on jboss-seam-booking-ear
          • In Java EE > Generate Deployment Descriptor Stub : it will create jboss-seam-booking-ear\src\application\META-INF\application.xml
          • add the following to application.xml
            <module>
            <ejb>jboss-seam-2.0.2.SP1.jar</ejb>
            </module>
          • create a new JBoss server. Use JBoss, a division of Red Hat > JBoss 4.2 AS server
          • choose your settings accordingly, then add jboss-seam-booking-ear to the server
          • back in eclipse project explorer, left click on datasources\jboss-seam-booking-ds.xml > deploy to server
          • start your server. On one occasion, jboss-seam-2.0.2.SP1.jar was not deployed correctly.
            After stopping the server, cleaning up $ {JBOSS_HOME}\server\default\tmp and ${JBOSS_HOME}

            \server\default\work and restarting eclipse, it deployed correctly.

          • In your browser, go to http://localhost:8080/seam-booking/
          • enjoy the ride \o/

          regards,

          Fred Bricon.

          Show
          Fred Bricon added a comment - This is a Mavenized version of seam booking, designed to demonstrate m2eclipse EAR support. Due to a bug in WTP ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=248206 ), in order to deploy this application, you'll need JBoss Tools IDE 2.1.2.GA ( http://www.jboss.org/tools/download/index.html ). It's only compatible with Eclipse Europa. For Ganymede support, you can try JBoss Tools IDE 3.0.0 Alpha 1 (Wich I haven't tested) You'll need to build m2eclipse from trunk (as long as MNGECLIPSE-688 is not resolved) Integration Tests won't work, due to https://jira.jboss.org/jira/browse/JBSEAM-2371 . If you want to package the project via mvn CLI, type : mvn package -Dmaven.test.skip To get it working in Eclipse WTP / Jboss Tools : launch eclipse Import the projects left click on jboss-seam-booking-ear In Java EE > Generate Deployment Descriptor Stub : it will create jboss-seam-booking-ear\src\application\META-INF\application.xml add the following to application.xml <module> <ejb>jboss-seam-2.0.2.SP1.jar</ejb> </module> create a new JBoss server. Use JBoss, a division of Red Hat > JBoss 4.2 AS server choose your settings accordingly, then add jboss-seam-booking-ear to the server back in eclipse project explorer, left click on datasources\jboss-seam-booking-ds.xml > deploy to server start your server. On one occasion, jboss-seam-2.0.2.SP1.jar was not deployed correctly. After stopping the server, cleaning up $ {JBOSS_HOME}\server\default\tmp and ${JBOSS_HOME} \server\default\work and restarting eclipse, it deployed correctly. In your browser, go to http://localhost:8080/seam-booking/ enjoy the ride \o/ regards, Fred Bricon.
          Hide
          Ulli Adrion added a comment -
          • what Eclipse and WTP version you are using?
            --> Eclipse ganymede 3.4, WTP 3.0.1
          • what application server you are deploying to?
            --> JBoss 4.2
          • are you using maven-ejb-plugin [1]? what version?
            --> yes, Maven org.apache.maven.plugin.ejb-plugin 2.1
            o do you need to generate/support ejb client?
            --> yes
            o what configuration option you are using in maven-ejb-plugin? show snippets of pom.xml:

          <plugin>
          <artifactId>maven-ejb-plugin</artifactId>
          <inherited>true</inherited>
          <configuration>
          <ejbVersion>3.0</ejbVersion>
          <generateClient>false</generateClient>
          <sourceDirectory>ejbModule</sourceDirectory>
          <archive>
          <manifest>
          <addClasspath>true</addClasspath>
          </manifest>
          </archive>
          </configuration>
          </plugin>

          • are you using maven-ear-plugin [2]? what version?
            --> yes, org.apache.maven.plugins.maven-ear-plugin 2.3.1
            o what configuration option you are using in maven-ear-plugin? show snippets of pom.xml:

          <plugin>
          <artifactId>maven-ear-plugin</artifactId>
          <inherited>true</inherited>

          <configuration>
          <generateApplicationXml>true</generateApplicationXml>
          <archive>
          <manifest>
          <addClasspath>true</addClasspath>
          </manifest>
          </archive>
          </configuration>
          </plugin>

          o what configuration modules [3] you are using?
          <modules>
          <jarModule>
          ...
          </jarModule>
          <ejbModule>
          ...
          </ejbModule>
          <webModule>
          ...
          </webModule>
          </modules>

          o are you using any other customization?
          --> no

          Show
          Ulli Adrion added a comment - what Eclipse and WTP version you are using? --> Eclipse ganymede 3.4, WTP 3.0.1 what application server you are deploying to? --> JBoss 4.2 are you using maven-ejb-plugin [1] ? what version? --> yes, Maven org.apache.maven.plugin.ejb-plugin 2.1 o do you need to generate/support ejb client? --> yes o what configuration option you are using in maven-ejb-plugin? show snippets of pom.xml: <plugin> <artifactId>maven-ejb-plugin</artifactId> <inherited>true</inherited> <configuration> <ejbVersion>3.0</ejbVersion> <generateClient>false</generateClient> <sourceDirectory>ejbModule</sourceDirectory> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> are you using maven-ear-plugin [2] ? what version? --> yes, org.apache.maven.plugins.maven-ear-plugin 2.3.1 o what configuration option you are using in maven-ear-plugin? show snippets of pom.xml: <plugin> <artifactId>maven-ear-plugin</artifactId> <inherited>true</inherited> <configuration> <generateApplicationXml>true</generateApplicationXml> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> o what configuration modules [3] you are using? <modules> <jarModule> ... </jarModule> <ejbModule> ... </ejbModule> <webModule> ... </webModule> </modules> o are you using any other customization? --> no
          Hide
          Eugene Kuleshov added a comment -

          I just published dev build 0.9.7.20081001-2217 that includes Fred's contribution and few other fixes. It can be installed from the dev update site at http://m2eclipse.sonatype.org/update-dev/

          I am going to clos this issue, because main functionality is implemented. Please submit bug reports and enhancement requests into a separate issues. Thanks.

          Show
          Eugene Kuleshov added a comment - I just published dev build 0.9.7.20081001-2217 that includes Fred's contribution and few other fixes. It can be installed from the dev update site at http://m2eclipse.sonatype.org/update-dev/ I am going to clos this issue, because main functionality is implemented. Please submit bug reports and enhancement requests into a separate issues. Thanks.
          Hide
          murray waters added a comment -

          Fred,

          I'm following your instructions to get the jboss seam example working, with the intention of having the ear support working on RAD7.5 with websphere 6.1. I'm starting with your example, then migrating it over to RAD.

          Anyway when you say "Import the projects", what sort of import do you mean? Import as a maven project? Import as a filesystem? At what level do you do the import.

          Show
          murray waters added a comment - Fred, I'm following your instructions to get the jboss seam example working, with the intention of having the ear support working on RAD7.5 with websphere 6.1. I'm starting with your example, then migrating it over to RAD. Anyway when you say "Import the projects", what sort of import do you mean? Import as a maven project? Import as a filesystem? At what level do you do the import.
          Hide
          murray waters added a comment -

          Its worth noting that as per MNGECLIPSE-965 , to use freds example you should edit jboss-seam-booking-parent/pom.xml to add the following
          <repositories>
          <repository>
          <id>jboss</id>
          <name>Jboss Repository</name>
          <url>http://repository.jboss.com/maven2/</url>
          </repository>
          </repositories>

          Show
          murray waters added a comment - Its worth noting that as per MNGECLIPSE-965 , to use freds example you should edit jboss-seam-booking-parent/pom.xml to add the following <repositories> <repository> <id>jboss</id> <name>Jboss Repository</name> <url> http://repository.jboss.com/maven2/ </url> </repository> </repositories>

            People

            • Assignee:
              Eugene Kuleshov
              Reporter:
              Chris Graham
            • Votes:
              20 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: