Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
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 :
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.
Issue Links
- relates to
-
MNGECLIPSE-688
support EAR and EJB projects
-
Fred, can you please look at this issue and apply patch if it makes sense? Thanks.