Hallo!
I dug through a lot of post concerning myeclipse an maven integration without no real result
I’m coming form wtp and trying myeclipse because the glassfish connector seams much better engineered than the wtp one. (It’s capable of exploded deploys, it can deploy a ejbs without a ear).
The m2eclipse plugin is quit ok integrated in wtp, just mark the maven dependency container as export and everything works fine.
It works the same way in myeclipse, if you add a jar (f.g. commons collections) to the pom and mark the maven container as export, it is deployed correctly to the /lib directory of the ear.
In wtp I use m2eclipse plugin also to add depended projects (if you open maven dependencies of the project, this is displayed with a folder icon instead of the jar icon) after adding a project reference to my .pom file, myeclipse stops deploying the project:
test-ear could not be redeployed because it could no be completely removed in the undeployment phase. The most common cause of this problem is attempting to redeploy thile the server is running, which has locked one or more files.
Start-Stop-redeploy does not help until I remove the project reference form the pom.
WTP packages the depended project as a separate jar file inside the ear.
I’m trying to follow Sahoo’s advice (form glassfish dev team) and produced this structure with m2eclipse and wtp.
lib/entities.jar
lib/ejb-interfaces.jar
ejbs.jar
web-app2.war
appclient.jar
(http://weblogs.java.net/blog/ss141213/archive/2005/12/using_java_pers.html)
How to get this in myeclipse with m2eclipse, any chance?
BTW, i’m getting myeclipse from pulse, this combination seams to rock a lot.
Thanks
-stephan