Hi,

You shouldn't use the resources section in the pom for this. Instead take a 
look at the docs for the ear plugin, especially the earSourceDirectory. Combine 
this with earSourceIncludes /-Excludes to do what you want.

Regards,
Marcel

----- Original Message ----
From: Johan Eltes <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Sent: Friday, April 13, 2007 8:09:56 PM
Subject: Re: Maven 2 ear plugin doesn't pick up resources

Thanks for the suggestion. I did try it (using the default layout,  
omitting META-INF). Unfortunately, the xmi file still doesn't make it  
into the ear. Any other suggestions are appreciated.

Johan Eltes
Callista Enterprise AB
Mobil: +46 (0)708-22 41 86
[EMAIL PROTECTED]
http://www.callistaenterprise.se


On 12 apr 2007, at 19.23, franz see wrote:

>
> Good day,
>
> If you're saying you have something like
>
> target/<artifactName>-<version>/classes/ibm-application-bnd.xmi
>
> Then I guess your resources are configured as follows
>
> <project>
>   ...
>   <build>
>     ...
>     <resources>
>       ...
>       <resource>
>         <directory>src/main/resources/META-INF/</directory>
>       </resource>
>     </resources>
>   </build>
> </project>
>
> If so, remove it or use the default
>
> <project>
>   ...
>   <build>
>     ...
>     <resources>
>       ...
>       <resource>
>         <directory>src/main/resources/</directory>
>       </resource>
>     </resources>
>   </build>
> </project>
>
> So that you will have something like
>
> target/<artifactName>-<version>/classes/META-INF/ibm-application- 
> bnd.xmi
>
> But im just guessing here since I haven't tried that before with  
> the ear
> plugin :-)
>
> Cheers,
> Franz
>
>
> Johan Eltes-3 wrote:
>>
>> I need to build an ear that - in addition to the generated
>> application.xml - adds an existing vendor-specific deployment
>> descriptor to the META-INF directory of the ear.
>>
>> I've tried the standard set-up:
>>
>> <projectroot>/scr/main/resources/META-INF/ibm-application-bnd.xmi
>>
>> When I invoke mvn install, the application.xml is generated and
>> copied to <ear>/META-INF/ while ibm-application-bnd.xmi isn't. When
>> looking into the target folder, I see the ibm-application-bnd.xmi has
>> been copied into target/<artifactName>-<version>/classes/, but never
>> made its way into the ear (or exploded ear). I see the same behavior
>> on windows and Mac OS.
>>
>> Johan Eltes
>> Callista Enterprise AB
>> Mobil: +46 (0)708-22 41 86
>> [EMAIL PROTECTED]
>> http://www.callistaenterprise.se
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Maven-2-ear- 
> plugin-doesn%27t-pick-up-resources-tf3565230s177.html#a9964276
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to