Issue Details (XML | Word | Printable)

Key: MPECLIPSE-80
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: fabrizio giustina
Reporter: fabrizio giustina
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Eclipse Plugin

Generate .wtpmodules files

Created: 11/Mar/05 05:39 AM   Updated: 09/Oct/05 12:02 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.10

Time Tracking:
Not Specified

File Attachments: 1. File MPECLIPSE-63-78-79-80.diff (57 kB)
2. Text File MPECLIPSE-wtpmodules.patch (56 kB)



 Description  « Hide
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

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
fabrizio giustina added a comment - 11/Mar/05 05:43 AM
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)

fabrizio giustina added a comment - 18/Jun/05 10:10 AM
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


fabrizio giustina added a comment - 18/Aug/05 07:06 AM
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)


Joerg Schaible added a comment - 18/Aug/05 07:26 AM
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.

Thomas Van de Velde added a comment - 04/Sep/05 02:26 AM
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.

Thomas Van de Velde added a comment - 04/Sep/05 02:29 AM
Do you plan on adding support for WTP EAR and EJB projects?

fabrizio giustina added a comment - 04/Sep/05 04:04 AM
> 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...


Mike Perham added a comment - 04/Oct/05 09:37 PM
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.

fabrizio giustina added a comment - 09/Oct/05 12:02 PM
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}