Maven 1.x Eclipse Plugin

Generate .wtpmodules files

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    2

Description

Generates a .wtpmodules file for eclipse wtp when the org.eclipse.wst.common.modulecore.ModuleCoreNature is set, see http://www.eclipse.org/webtools/jst/components/j2ee/scenarios/MavenEclipseIntegration.html

  1. MPECLIPSE-63-78-79-80.diff
    11/Mar/05 5:43 AM
    57 kB
    fabrizio giustina
  2. MPECLIPSE-wtpmodules.patch
    18/Aug/05 7:06 AM
    56 kB
    fabrizio giustina

Activity

Hide
fabrizio giustina added a comment -

patch for MPECLIPSE-63 MPECLIPSE-78 MPECLIPSE-79 MPECLIPSE-80
contains updated docs and new plugins tests (sorry for the unique file but it's difficult to create separate patches)

Show
fabrizio giustina added a comment - patch for MPECLIPSE-63 MPECLIPSE-78 MPECLIPSE-79 MPECLIPSE-80 contains updated docs and new plugins tests (sorry for the unique file but it's difficult to create separate patches)
Hide
fabrizio giustina added a comment -

patches are obsolete.
if anybody cares about committing these please let me know and I will produce updated patches >:

if there is a chance to see something committed I can these enhancement to the M2 eclipse plugin as well

Show
fabrizio giustina added a comment - patches are obsolete. if anybody cares about committing these please let me know and I will produce updated patches >: if there is a chance to see something committed I can these enhancement to the M2 eclipse plugin as well
Hide
fabrizio giustina added a comment -

Ok, another try...
this is an updated patch, working with the final (0.7) release of eclipse WTP. Docs have been updated as well.
This makes the eclipse plugin automatically generate a .wtpmodules file if the multiproject type is "war", adding all the eclipse dependencies as wtp modules. This makes any webapp project ready to be run with a server inside eclipse (J2EE perspective, dynamic web projects -> run on server).

If anybody wants to try/use this feature can add a reference to an unofficial plugin build (1.10-UNOFFICIAL-3) which is available in a maven repository at http://magnolia.sourceforge.net/repository (http://magnolia.sourceforge.net/repository/maven/plugins/maven-eclipse-plugin-1.10-UNOFFICIAL-3.jar)

Show
fabrizio giustina added a comment - Ok, another try... this is an updated patch, working with the final (0.7) release of eclipse WTP. Docs have been updated as well. This makes the eclipse plugin automatically generate a .wtpmodules file if the multiproject type is "war", adding all the eclipse dependencies as wtp modules. This makes any webapp project ready to be run with a server inside eclipse (J2EE perspective, dynamic web projects -> run on server). If anybody wants to try/use this feature can add a reference to an unofficial plugin build (1.10-UNOFFICIAL-3) which is available in a maven repository at http://magnolia.sourceforge.net/repository (http://magnolia.sourceforge.net/repository/maven/plugins/maven-eclipse-plugin-1.10-UNOFFICIAL-3.jar)
Hide
Joerg Schaible added a comment -

Can you make this optional? I.e. generate .wtpmodules only with an excplicit maven.eclipse.support.wtp=true for war types.
Hint: Other people are using JBoss-IDE or MyEclipse ... and this syntax leaves room to support other extensions also.

Show
Joerg Schaible added a comment - Can you make this optional? I.e. generate .wtpmodules only with an excplicit maven.eclipse.support.wtp=true for war types. Hint: Other people are using JBoss-IDE or MyEclipse ... and this syntax leaves room to support other extensions also.
Hide
Thomas Van de Velde added a comment -

Does this also take care of copying the libraries that are marked with "<war.bundle>true</war.bundle>" to the lib folder of a wtp war project? This is required for deployment to work.

Show
Thomas Van de Velde added a comment - Does this also take care of copying the libraries that are marked with "<war.bundle>true</war.bundle>" to the lib folder of a wtp war project? This is required for deployment to work.
Hide
Thomas Van de Velde added a comment -

Do you plan on adding support for WTP EAR and EJB projects?

Show
Thomas Van de Velde added a comment - Do you plan on adding support for WTP EAR and EJB projects?
Hide
fabrizio giustina added a comment -

> Does this also take care of copying the libraries that are marked with "<war.bundle>true</war.bundle>" to the lib folder of a wtp war project? This is required for deployment to work.
yes, jars are added to wtpmodules as "var" dependencies and are copied directly from the local maven repo by eclipse during builds.

> Do you plan on adding support for WTP EAR and EJB projects?
actually I already posted a patch with ejb support for the m2 eclipse plugin, MNG-760
anyway, I will be happy to incorporate this into the maven 1 plugin and add support for ear projects as well, but only if any of the committer is interested... a patch is here since March and nobody committed it so probably there is no interest in it...

Show
fabrizio giustina added a comment - > Does this also take care of copying the libraries that are marked with "<war.bundle>true</war.bundle>" to the lib folder of a wtp war project? This is required for deployment to work. yes, jars are added to wtpmodules as "var" dependencies and are copied directly from the local maven repo by eclipse during builds. > Do you plan on adding support for WTP EAR and EJB projects? actually I already posted a patch with ejb support for the m2 eclipse plugin, MNG-760 anyway, I will be happy to incorporate this into the maven 1 plugin and add support for ear projects as well, but only if any of the committer is interested... a patch is here since March and nobody committed it so probably there is no interest in it...
Hide
Mike Perham added a comment -

Fabrizio, thank you for your unofficial build! The generated .wtpmodule works great for me. The .classpath file does not have the required server integration but I generated that myself.

Show
Mike Perham added a comment - Fabrizio, thank you for your unofficial build! The generated .wtpmodule works great for me. The .classpath file does not have the required server integration but I generated that myself.
Hide
fabrizio giustina added a comment -

Committed to svn for version 1.10.
This adds complete support for web projects, ears and ejbs will come (please open a separate Jira issue if you are interested in a feature related to wtp that is not actually covered by the plugin).

about this:
> The .classpath file does not have the required server integration but I generated that myself.

server integration can be added using the existing "conclasspath" property, e.g. using:

maven.eclipse.conclasspath=org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5,org.eclipse.jst.j2ee.internal.web.container/${pom.artifactId}

Show
fabrizio giustina added a comment - Committed to svn for version 1.10. This adds complete support for web projects, ears and ejbs will come (please open a separate Jira issue if you are interested in a feature related to wtp that is not actually covered by the plugin). about this: > The .classpath file does not have the required server integration but I generated that myself. server integration can be added using the existing "conclasspath" property, e.g. using: maven.eclipse.conclasspath=org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5,org.eclipse.jst.j2ee.internal.web.container/${pom.artifactId}

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: