We have following projects:
office - web application project
console - web application project
MyEclipse by default deploys these web applications to following locations:
C:\tools\jboss-5.1.0.GA\server\web\deploy\office.war
C:\tools\jboss-5.1.0.GA\server\web\deploy\console.war
But in ant build and in our deployment scripts we use different names for war files:
devoffice.war
devconsole.war
Now we are going not only build these two war files but we are going to create enterprise application devapp that will include both of these web applications:
devapp - enterprise application project
In EAR we describe web applications in META-INF\application.xml
I created following application.xml:
<application >
<display-name>devapp</display-name>
<module>
<web>
<web-uri>devoffice.war</web-uri>
<context-root>/office</context-root>
</web>
</module>
<module>
<web>
<web-uri>devconsole.war</web-uri>
<context-root>/console</context-root>
</web>
</module>
</application>
This application.xml works in case if we build EAR and WAR files by ant build procedure.
But this application.xml cannot be used from Eclipse because by default Eclipse creates office.war and console.war files but not devoffice.war and devconsole.war.
Is it possible to change the name of module in enterprise application?