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...@gmail.com> on 2008/01/24 10:04:33 UTC
Including extras in the ear file
My ear project looks as shown below:
[BankComponentApp directory ]
|
|
+---META-INF
| |
| |__application.xml
| |__ibm-application-bnd.xmi
| |__MANIFEST.MF
| |
|
+---ext
|__blueprint-1.2.0.jar
|__commons-configuration-1.2.jar
When I package my ear using the maven-ear-plugin , the
ibm-application-bnd.xmi file and the "ext" directory are being excluded.I've
added the
<earSourceIncludes>META-INF/**.xmi</earSourceIncludes>
configuration , but that does not seem to do it.What am I doing wrong?
--
"Don't take the name of root in vain."
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
Re: Including extras in the ear file
Posted by Wayne Fay <wa...@gmail.com>.
Specifying a different path with the earSourceDirectory configuration
is one way to do it.
As seen in the EAR plugin docs:
http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html
The default for this setting is:
${basedir}/src/main/application
So you could also just copy your files to that directory.
Wayne
On 1/24/08, Jeff Mutonho <ej...@gmail.com> wrote:
> On Jan 24, 2008 11:04 AM, Jeff Mutonho <ej...@gmail.com> wrote:
>
> > My ear project looks as shown below:
> >
> > [BankComponentApp directory ]
> > |
> > |
> > +---META-INF
> > | |
> > | |__application.xml
> > | |__ibm-application-bnd.xmi
> > | |__MANIFEST.MF
> > | |
> > |
> > +---ext
> > |__blueprint-1.2.0.jar
> > |__commons-configuration-1.2.jar
> >
> >
> > When I package my ear using the maven-ear-plugin , the
> > ibm-application-bnd.xmi file and the "ext" directory are being
> excluded.I've
> > added the
> > <earSourceIncludes>META-INF/**.xmi</earSourceIncludes>
> >
> > configuration , but that does not seem to do it.What am I doing wrong?
> >
> >
> >
> It seems one also needs to add the <earSourceDirectory>
>
> After trying that , the following eventually gave the desired result.
>
> <earSourceDirectory>${basedir}</earSourceDirectory>
> <earSourceIncludes>META-INF/*</earSourceIncludes>
>
>
>
>
>
>
>
> "Don't take the name of root in vain."
>
> Jeff Mutonho
> Cape Town
> South Africa
>
> GoogleTalk : ejbengine
> Skype : ejbengine
> Registered Linux user number 366042
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Including extras in the ear file
Posted by Jeff Mutonho <ej...@gmail.com>.
On Jan 24, 2008 11:04 AM, Jeff Mutonho <ej...@gmail.com> wrote:
> My ear project looks as shown below:
>
> [BankComponentApp directory ]
> |
> |
> +---META-INF
> | |
> | |__application.xml
> | |__ibm-application-bnd.xmi
> | |__MANIFEST.MF
> | |
> |
> +---ext
> |__blueprint-1.2.0.jar
> |__commons-configuration-1.2.jar
>
>
> When I package my ear using the maven-ear-plugin , the
> ibm-application-bnd.xmi file and the "ext" directory are being excluded.I've
> added the
> <earSourceIncludes>META-INF/**.xmi</earSourceIncludes>
>
> configuration , but that does not seem to do it.What am I doing wrong?
>
>
>
It seems one also needs to add the <earSourceDirectory>
After trying that , the following eventually gave the desired result.
<earSourceDirectory>${basedir}</earSourceDirectory>
<earSourceIncludes>META-INF/*</earSourceIncludes>
"Don't take the name of root in vain."
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042