maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thierry Barnier" <>
Subject ear:generate-application-xml : ability to disable the <context-root> of a web module
Date Thu, 01 Jun 2006 23:42:52 GMT

I'm developping some  portlets, and bundling them into an EAR module.
I use a multi module POM architecture

the ear:generate-application-xml goal generate a <context-root> tag, when it
depends on a WAR module.
However, this line is problematic when you deploy a portlet, because it
seems illegal in this case.
(deployment fails)

My EAR config is as follow

                    <displayName>Thierry Portlet</displayName>
                    <description>JBOSS portlet</description>
                            <!--<contextRoot>/portlet</contextRoot>  <<<<
problem goes here

If i comment / remove the <contextroot> line, it takes the WAR filename as

It generates the following application.xml

  <display-name>Thierry Portlet</display-name>
  <description>JBOSS portlet</description>
      <context-root>/portlet</context-root>            <<< I would like
remove automatically this line

I would like to remove automatically the <context-root> line.

what could be the strategy?
=>a <noContextRoot> tag added to the ear plugin config
=>a way to specify that application-xml has to be generated regarding
portlet constraints?

Thanks for your help


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message