Just use the one generated byWSAD, and don't let Maven generate it.

See http://maven.apache.org/reference/plugins/ear/properties.html and
the maven.ear.appxml.generate property

On Tue, 31 Aug 2004 04:31:47 -0700 (PDT), jeff mutonho
<[EMAIL PROTECTED]> wrote:
> 
> I've generated an EAR file for deployement on a Websphere AppServer 4.I've just 
> compared it with the one generated by WSAD and there are some differences.
> 
> I did set my maven.ear.appxml.version=1.2 in the project's properties file.
> 
> The application.xml file generated by WSAD looks like :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 
> 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd";>
> <application id="Application_ID">
>  <display-name>Support_EAR</display-name>
>  <module id="EjbModule_1058193037180">
>   <ejb>Support_Business.jar</ejb>
>  </module>
>  <module id="WebModule_1058434413572">
>   <web>
>    <web-uri>Support_Web.war</web-uri>
>    <context-root>support</context-root>
>   </web>
>  </module>
> </application>
> 
> and the one generated by the EAR plugin looks like :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 
> 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd";>
> 
> <application>
>   <display-name>Support_EAR</display-name>
>   <module>
>     <ejb>Support_Business.jar</ejb>
>   </module>
>     <module>
>     <web>
>       <web-uri>Support_Web.war</web-uri>
>       <context-root>support</context-root>
>     </web>
>   </module>
> </application>
> 
> the  id="EjbModule_<someNumber>  are in some other generated mappinf file called 
> .modulemaps which has the following
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <modulemap:EARProjectMap xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"; 
> xmlns:modulemap="modulemap.xmi" xmlns:application="application.xmi" 
> xmi:id="EARProjectMap_1056449807499">
>   <mappings xmi:id="ModuleMapping_1058193037180" projectName="Support_Business">
>     <module xmi:type="application:EjbModule" 
> href="META-INF/application.xml#EjbModule_1058193037180"/>
>   </mappings>
>   <mappings xmi:id="ModuleMapping_1058434413572" projectName="Support_Web">
>     <module xmi:type="application:WebModule" 
> href="META-INF/application.xml#WebModule_1058434413572"/>
>   </mappings>
> 
> </modulemap:EARProjectMap>
> 
> How can I get my application.xml to look like the one generated by WSAD?
> 
> jeff mutonho
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter now.


-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to