You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Surendran D <su...@gmail.com> on 2013/10/17 07:58:55 UTC
maven-ear-pugin modify applicaion.xml
Hi,
I have requirement to exclude some entries in application.xml during ear
build.
application.xml generated by maven-ear-plugin is as follows
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
<description>The EAR packaging for the server side of
Application</description>
<display-name>ApplicationEAR</display-name>
<module>
<java>Alpha.jar</java>
</module>
<module>
<ejb>Beta.jar</ejb>
</module>
<module>
<ejb>Theta.jar</ejb>
</module>
<module>
<web>
<web-uri>Delta.war</web-uri>
<context-root>/Delta/root</context-root>
</web>
</module>
</application>
With EAR structure
ApplicationEAR
|--Alpha.jar
|--Beta.jar
|--Theta.jar
|--Delta.jar
In my case I need to maintain the same EAR structure in the build but have
to exclude entries Alpha.jar and Beta.jar from application.xml during build.
How can I achive the same?
Re: maven-ear-pugin modify applicaion.xml
Posted by Surendran D <su...@gmail.com>.
thanks used following setting to get it work.
<applicationXml>src/main/resources/META-INF/application.xml</applicationXml>
On Thu, Oct 17, 2013 at 6:26 PM, Wayne Fay <wa...@gmail.com> wrote:
> > I have requirement to exclude some entries in application.xml during ear
> > build.
> ...
> > In my case I need to maintain the same EAR structure in the build but
> have
> > to exclude entries Alpha.jar and Beta.jar from application.xml during
> build.
>
> I am fairly certain you can provide an application.xml rather than
> just taking the one that Maven generates for you. Check the
> configuration options & documentation for m-ear-p.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: maven-ear-pugin modify applicaion.xml
Posted by Wayne Fay <wa...@gmail.com>.
> I have requirement to exclude some entries in application.xml during ear
> build.
...
> In my case I need to maintain the same EAR structure in the build but have
> to exclude entries Alpha.jar and Beta.jar from application.xml during build.
I am fairly certain you can provide an application.xml rather than
just taking the one that Maven generates for you. Check the
configuration options & documentation for m-ear-p.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org