[EMAIL PROTECTED] wrote:
Igor Fedorenko <[EMAIL PROTECTED]> wrote on 16/06/2008 11:43:31:

Maven projects with packaging=war will be automatically configured as Dynamic Web WTP project during project import or update configuration action. All relevant project dependencies will be added to WTP J2EE Module Dependencies (and removed from Maven Dependencies) and J2EE Module Dependencies and Maven Dependencies will be automatically updated

as projects dependencies change.

There is still some bugs/limitations in this area, but this mostly works

;-) You may want to try to create/import WAR project in WTP 2.0.x and see how changes to dependencies in POM get reflected in J2EE Module Dependencies.

But that is the bit that is not working.

I have a WAR project that I "Update Project Configuration" on. The pom of this war file has three major dependencies in it.

A tools project, that has been released and deployed. This one does show up in the list of maven managed dependicies, just like any other jar files.

Although it is not visible anywhere in the UI, this JAR is internally marked as J2EE Module Dependency and is expected to appear in WEB-INF/lib folder when you export the project and run it from WTP.


It has a resource jar (as a JAR project) that is listed as a dependency of the WAR project. The resource jar's version is 1.0-SNAPSHOT and it exists in the same workspace.

JAR workspace dependencies that exist in workspace are expected to appear as J2EE Module Dependencies of the WAR project (but not in Maven Dependencies classpath container and not in project references!). Please open bug report in JIRA [1] with sample project, if this does not happen.


There is also the EJB jar (as an EJB project) and ditto for the version and workspace.

The EJB and Resource jar's are not being included, nor are the being updated as a referenced project.


EJB project is expected to appear as WAR project's J2EE Module Dependency, similar to the resources JAR. EJB project itself, however, will not be configured as WTP EJB project, so most likely it will not work if you try to run your projects on a Server from WTP. Please open an enhancement request to support EJB projects.


[1] http://jira.codehaus.org/browse/MNGECLIPSE

--
Regards,
Igor

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to