You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Johan Eltes <jo...@callistaenterprise.se> on 2007/04/12 14:32:26 UTC

Maven 2 ear plugin doesn't pick up resources

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
johan.eltes@callistaenterprise.se
http://www.callistaenterprise.se



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven 2 ear plugin doesn't pick up resources

Posted by Johan Eltes <jo...@callistaenterprise.se>.
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
johan.eltes@callistaenterprise.se
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
>> johan.eltes@callistaenterprise.se
>> http://www.callistaenterprise.se
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
> -- 
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven 2 ear plugin doesn't pick up resources

Posted by franz see <fr...@gmail.com>.
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
> johan.eltes@callistaenterprise.se
> http://www.callistaenterprise.se
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org