You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jeff mutonho <ej...@yahoo.com> on 2004/08/31 13:31:47 UTC
Ear file :application.xml
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.
Re: updating sub projects from cvs
Posted by Brett Porter <br...@gmail.com>.
why not just CVS update from the base directory? It's recursive...
- Brett
On Wed, 1 Sep 2004 04:07:19 -0700 (PDT), jeff mutonho
<ej...@yahoo.com> wrote:
> Hi guys
>
> I've defined a preGoal and a goal to update projects from CVS ,clean the projects and do a rebuild as follows:
>
> <preGoal name="support-build-all">
> <j:set var="maven.scm.cvs.module">Support_Persistence</j:set>
> <attainGoal name="scm:cvs-update-project"/>
> <j:set var="maven.scm.cvs.module">Support_Web</j:set>
> <attainGoal name="scm:cvs-update-project"/>
> </preGoal>
>
> <goal name="support-build-all">
> <attainGoal name="multiproject:clean"/>
> <!--m:reactor basedir="${basedir}"
> includes="*/project.xml"
> goals="support-build-all"
> banner="Building Project"
> ignoreFailures="false"/-->
> </goal>
>
> and when I run maven , the cvs-update-project goal seems to run repeatedly , printing out the following(shown below), more than 5 times , then it continues with the next goal of cleaning up
>
> scm:cvs-update-project:
> [cvs] ? Support_Persistence/deploycodeWIN.log
> [cvs] ? Support_Persistence/deploycodeWIN.txt
> [cvs] ? Support_Persistence/directory structure.html
> [cvs] ? Support_Persistence/goals.txt
> [cvs] ? Support_Persistence/maven.xml
> [cvs] ? Support_Persistence/persitence_build.log
> [cvs] ? Support_Persistence/project.properties
> [cvs] ? Support_Persistence/project.xml
> [cvs] ? Support_Persistence/target-classes.txt
> [cvs] ? Support_Web/DEBUG.log
> [cvs] ? Support_Web/compilerErr.log
> [cvs] ? Support_Web/filelist.txt
> [cvs] ? Support_Web/maven.xml
> [cvs] ? Support_Web/project.properties
> [cvs] ? Support_Web/project.xml
> [cvs] ? Support_Web/target
> [cvs] ? Support_Web/webContent.html
>
> Is this normal?Is this the right way of going about setting up a nightly build ?
>
> jeff mutonho
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
updating sub projects from cvs
Posted by jeff mutonho <ej...@yahoo.com>.
Hi guys
I've defined a preGoal and a goal to update projects from CVS ,clean the projects and do a rebuild as follows:
<preGoal name="support-build-all">
<j:set var="maven.scm.cvs.module">Support_Persistence</j:set>
<attainGoal name="scm:cvs-update-project"/>
<j:set var="maven.scm.cvs.module">Support_Web</j:set>
<attainGoal name="scm:cvs-update-project"/>
</preGoal>
<goal name="support-build-all">
<attainGoal name="multiproject:clean"/>
<!--m:reactor basedir="${basedir}"
includes="*/project.xml"
goals="support-build-all"
banner="Building Project"
ignoreFailures="false"/-->
</goal>
and when I run maven , the cvs-update-project goal seems to run repeatedly , printing out the following(shown below), more than 5 times , then it continues with the next goal of cleaning up
scm:cvs-update-project:
[cvs] ? Support_Persistence/deploycodeWIN.log
[cvs] ? Support_Persistence/deploycodeWIN.txt
[cvs] ? Support_Persistence/directory structure.html
[cvs] ? Support_Persistence/goals.txt
[cvs] ? Support_Persistence/maven.xml
[cvs] ? Support_Persistence/persitence_build.log
[cvs] ? Support_Persistence/project.properties
[cvs] ? Support_Persistence/project.xml
[cvs] ? Support_Persistence/target-classes.txt
[cvs] ? Support_Web/DEBUG.log
[cvs] ? Support_Web/compilerErr.log
[cvs] ? Support_Web/filelist.txt
[cvs] ? Support_Web/maven.xml
[cvs] ? Support_Web/project.properties
[cvs] ? Support_Web/project.xml
[cvs] ? Support_Web/target
[cvs] ? Support_Web/webContent.html
Is this normal?Is this the right way of going about setting up a nightly build ?
jeff mutonho
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
Re: Ear file :application.xml
Posted by Dion Gillard <di...@gmail.com>.
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
<ej...@yahoo.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org