7 Replies Latest reply on Aug 24, 2010 10:56 AM by houzecl

    Maven Integration ?

    houzecl

      I just installed  JBoss Developer Studio 3.0.1 with EAP Windows Binary

      this is the latest version available on the Software Download Page, and I thought (wrongly) that m2eclipse was pre-installed inside, with all others plugins...

      But, I can't see any Maven integration with JBoss Developer Studio (neither can I find any documentation related to it)

      Therefore my questions:

       

      Above the provided Eclipse installation, can I install the latest m2eclipse version (0.10.2) from http://m2eclipse.sonatype.org/sites/m2e ?

      Should I be aware of any known problems between JBoss tools and this latest version ?

      Is there any Maven preset integration within JBoss Developer Studio (e.g. some projects achetypes available somewhere ?)

      Is there any associated documentation ?

       

      Thanks for any information,

       

      Christian-Luc

        • 1. Re: Maven Integration ?
          snjeza

          The JBoss Maven Integration is compatible with JBDS 3.0.x, but isn't supported.

          You also need to install the m2eclipse "Maven Integration for WTP" feature using http://m2eclipse.sonatype.org/sites/m2e-extras and the JBoss Maven Integration feature using http://download.jboss.org/jbosstools/updates/stable/galileo/.

          There is not any documentation for the JBoss Maven Integration feature. You could start with the following:

          - creating a Seam (or WTP EJB, EAR or Web) project and adding the JBoss Maven Integration facet

          - installing a mavenized project using JBoss Project Examples

          - using some Maven archetype

          - importing some existing Maven project

          1 of 1 people found this helpful
          • 2. Re: Maven Integration ?
            houzecl

            Hi, thanks for your quick answer.

            I installed all additionnal plugins. (cf attached configuration log from eclipse) restarted, then created a standard dynamic web project, and tried to open the web.xml

             

            Jboss tool XML editor just blows up (ie. eclipse just crashes... however if i use standard XML editor, it opens OK)

            I just get this in the error log:


            eclipse.buildId=M20100211-1343
            java.version=1.6.0_21
            java.vendor=Sun Microsystems Inc.
            BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_CH
            Command-line arguments:  -os win32 -ws win32 -arch x86

            !ENTRY org.eclipse.equinox.p2.repository 4 0 2010-08-23 12:21:17.437
            !MESSAGE ProvisioningEventBus could not be obtained. Metadata caches may not be cleaned up properly.

            If i use JBDS without the additional plugins, and do the same, it's fine.

             

            Do you have any idea about the plugin that may cause the failure ?

             

            Christian-Luc

            • 3. Re: Maven Integration ?
              snjeza

              I can't  reproduce the problem.
              The following is what I did:

               

              - Installed JBDS 3.0.1 (jbdevstudio-eap-win32-3.0.1.v201006010437R-H98-GA.jar)
              - added the following m2e update sites :
              http://m2eclipse.sonatype.org/sites/m2e
              http://m2eclipse.sonatype.org/sites/m2e-extras
              - enabled JBoss Tools Galileo update site http://download.jboss.org/jbosstools/updates/stable/galileo/
              - installed m2eclipse core from http://m2eclipse.sonatype.org/sites/m2e
              - installed m2eclipse extras from http://m2eclipse.sonatype.org/sites/m2e-extras (except subclipse integration that has additional requirements)
              - installed Maven Support from http://download.jboss.org/jbosstools/updates/stable/galileo/
              - restarted JBDS
              - created a Dynamic Web Project and Seam Web Project with the JBoss Maven Integration facet
              - opened web.xml

               

              It works fine on WIndows XP, JDK 1.6.0_21.
              I am not sure what you mean by "just blows up" ? - Eclipse crashes? Eclipse freezes?
              If it crashes, you can find a log file in <STUDIO_HOME>/eclipse (C:\Program Files\jbdevstudio\eclipse\). Is there any file like hs_err_pidXXX.log ?

              • 4. Re: Maven Integration ?
                houzecl

                I'm trying to narrow the problem.

                 

                At this time, i've got the following configuration:

                WIndows XP SP3, JDK 1.6.0_21.

                JBoss Developer Studio Version: 3.0.1.GA Build id: v201006010437R Build date: 201006010449

                 

                then, i I just install "Maven Integration for Eclipse 0.10.2.20100623-1649" and create a dynamic web project (No maven projet)

                just go on the java perspective, package explorer view, right click new ... Dynamic web project ... and double click on web.xml

                it blows up: i mean crash !

                I attach the associated hs_err_pidXXX.log

                 

                If I use the standard eclipse feature to revert to original installation, it works fine, happily !

                If I switch again to installation with m2eclipse, crash ...

                and so on.

                 

                I'll go further on by trying with the other plugins one at a time ...

                 

                Thanks,

                 

                Christian-Luc

                • 5. Re: Maven Integration ?
                  houzecl

                  I've got some interesting (?) news !

                   

                  If I perform all plugins installations in one shot, i.e. without restarting eclipse, as suggested by eclipse after each plugin installation, then it works: I can create a daynamic web project, and double click ok on web.xml without crash

                   

                  however after an eclipse restart, it fails ...

                  • 6. Re: Maven Integration ?
                    snjeza

                    Can you reproduce the problem when installing m2eclipse core and m2eclipse wtp without installing the JBoss Maven support?

                    Does the problem happen if you start JBDS in a new workspace?

                    • 7. Re: Maven Integration ?
                      houzecl

                      yes to all questions