Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.7
    • Fix Version/s: 0.9.7
    • Component/s: WTP integration
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      Currently the m2eclipse plugin with MNGECLIPSE-688 support EAR and EJB projects. If you close one project, the jar from local repository is used and deployed on server but with name like artifactId-versionId.jar.

      To explain use the mavenized-jboss-seam-booking.zip attached to MNGECLIPSE-688 :

      • launch eclipse
      • Import the projects
      • 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>
      • 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/
      • Ok it works !
      • left click on jboss-seam-booking-ejb
      • In Run As > Maven Install
      • close the jboss-seam-booking-ejb project
      • select server and clean it
      • start server => the server start with error.
      • jboss-seam-booking-ejb.jar is defined in application.xml, but jboss-seam-booking-ejb-0.0.1-SNAPSHOT.jar is deployed.
      • Apply the attached patch.
      • left click on jboss-seam-booking-ear
      • In Run As > Maven generate-resources
      • copy target\jboss-seam-booking-ear\META-INF\application.xml to src\main\application\\META-INF\application.xml
      • start server
      • In your browser, go to http://localhost:8080/seam-booking/
      • Ok it works !

      In summary, you can open or close era module projects.

      1. patch.txt
        2 kB
        Jérémie Lagarde

        Issue Links

          Activity

          Hide
          Eugene Kuleshov added a comment -

          Fred, can you please look at this issue and apply patch if it makes sense? Thanks.

          Show
          Eugene Kuleshov added a comment - Fred, can you please look at this issue and apply patch if it makes sense? Thanks.
          Hide
          Fred Bricon added a comment -

          Hi,

          thanks a lot for the patch. I learnt a few things
          I won't apply it as is, as deployed filenames are supposed to be taken care of in the org.maven.ide.eclipse.wtp.earmodules.output package.
          I'll most probably reuse most of it. I Can't give you an ETA right now, but hopefully it'll be ready for the next stable dev release.

          regards

          Fred Bricon

          Show
          Fred Bricon added a comment - Hi, thanks a lot for the patch. I learnt a few things I won't apply it as is, as deployed filenames are supposed to be taken care of in the org.maven.ide.eclipse.wtp.earmodules.output package. I'll most probably reuse most of it. I Can't give you an ETA right now, but hopefully it'll be ready for the next stable dev release. regards Fred Bricon
          Hide
          Jérémie Lagarde added a comment -

          Actually, It seems better to use output package.
          Thank you to correct my patch, and for all your work.
          I am volunteer to beta-test the result.

          jerr

          Show
          Jérémie Lagarde added a comment - Actually, It seems better to use output package. Thank you to correct my patch, and for all your work. I am volunteer to beta-test the result. jerr
          Hide
          Fred Bricon added a comment -

          Fixed in trunk. org.maven.ide.eclipse.wtp.earmodules.output.FileNameMapping was changed to use the [artifactId]-[version].[extension] pattern for workspace projects.
          Jerr's patch was applied with minor modifications to org.maven.ide.eclipse.wtp.EarProjectConfiguratorDelegate, in order to apply project deployment name change.

          Thanks a lot jerr.

          regards,

          Fred Bricon

          Show
          Fred Bricon added a comment - Fixed in trunk. org.maven.ide.eclipse.wtp.earmodules.output.FileNameMapping was changed to use the [artifactId] - [version] . [extension] pattern for workspace projects. Jerr's patch was applied with minor modifications to org.maven.ide.eclipse.wtp.EarProjectConfiguratorDelegate, in order to apply project deployment name change. Thanks a lot jerr. regards, Fred Bricon

            People

            • Assignee:
              Fred Bricon
              Reporter:
              Jérémie Lagarde
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: