I'm using the mvn eclipse:eclipse to generate Eclipse projects, but I
notice the Maven Project for my .EAR file artifact generates a
.wtpmodules file with
module-type-id="jst.utility"
shouldn't it generate a
module-type-id="jst.ear" ?
instead ? If it did, then in Eclipse it would be treated as an J2EE
EAR Project,
How do you guys get around this ? are you importing the Maven build
.EAR artifact into a new Eclipse J2EE EAR Project ?
I also noticed the dependancies are missing (I have applied the patch
to the svn eclipse plugin that was posted
http://jira.codehaus.org/browse/MNG-1332 , and rebuilt )
Looking at the EclipseWtpmodulesWriter.java in SVN it only seems to
add dependent-modules for WAR artifacts in writeWarSpecificResources()
which calls addDependency(...) . I'm thinking that addDependency(...)
should also be called if project is .EAR type ? Any thoughts ?
Here's what I get in full :-
project-modules id="moduleCoreId">
<wb-module deploy-name="application_ear">
<module-type module-type-id="jst.utility">
<property name="java-output-path" value="/target/classes"/>
</module-type>
</wb-module>
</project-modules>
Here's what I think I should get (this comes from importing the .EAR file) :-
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId">
<wb-module deploy-name="application_ear-1_0-SNAPSHOT">
<module-type module-type-id="jst.ear">
<version>1.3</version>
</module-type>
<wb-resource deploy-path="/"
source-path="/application_ear-1_0-SNAPSHOT"/>
<dependent-module deploy-path="/"
handle="module:/resource/bus_ExampleManager/bus_ExampleManager">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/"
handle="module:/resource/pres_ApplicationWeb/pres_ApplicationWeb">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/"
handle="module:/resource/pres_WebServices/pres_WebServices">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/"
handle="module:/resource/srv_ExampleService/srv_ExampleService">
<dependency-type>uses</dependency-type>
</dependent-module>
</wb-module>
</project-modules>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]