You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Thunder Farmer <th...@gmail.com> on 2010/03/16 04:06:00 UTC

Maven ear plugin -- add files into META-INF folder

Dear all,

During ear packaging, is there any way to add my personal files into the
ear/META-INF folder if I don't put it in the default source folder
"src\main\application\META-INF".
For example, I have weblogic specific file "weblogic-application.xml", it
dost't lie in the default folder "src\main\application\META-INF", what could
I do in this case?
I am using maven 2.1.0-M1.

any idea would be appreciated.

Thanks,
Thunder

-- 
Listen to Your Heart
Follow Your Heart

Re: Maven ear plugin -- add files into META-INF folder

Posted by Thunder Farmer <th...@gmail.com>.
Hi Markku,

Thanks a lot.
Previously my problem lie in that I missed the META-INF subdirectory under
"earSourceDirectory".

Best Regards,
Thunder


On Wed, Mar 17, 2010 at 12:37 AM, Markku Saarela <ma...@iki.fi>wrote:

> You could use
> <earSourceDirectory>${project.build.outputDirectory}</earSourceDirectory>
> and use normal build resources
>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>true</filtering>
> </resource>
> </resources>
>
> and put this weblogic file in subdirectory META-INF also you can define
> additional resource directories there.. This way you can also filter these
> files.
>
> rgds,
>
> Markku
>
>
> On 16.3.2010 8:16, Thunder Farmer wrote:
>
>> Thanks.
>>
>> I do look into the "earSourcesDirectory" parameter.
>> The problem is that files specified by "earSourcesDirectory " will be
>> under
>> root directory of the ear, rather than under ear/META-INF.
>> Any idea for my issue?
>>
>> I just want some files out of default folder
>> "src\main\application\META-INF"
>> to be parckaged into ear/META-INF/
>>
>> Thanks,
>> Thunder
>>
>> On Tue, Mar 16, 2010 at 1:18 PM, Markku Saarela<markku.saarela@iki.fi
>> >wrote:
>>
>>
>>
>>> Hi,
>>>
>>> As in
>>>
>>> http://maven.apache.org/plugins/maven-ear-plugin/examples/filtering-sources.htmlnoteduse earSourcesDirectory.
>>>
>>>
>>> Rgds,
>>>
>>> Markku
>>>
>>>
>>> On 16.3.2010 5:06, Thunder Farmer wrote:
>>>
>>>
>>>
>>>> Dear all,
>>>>
>>>> During ear packaging, is there any way to add my personal files into the
>>>> ear/META-INF folder if I don't put it in the default source folder
>>>> "src\main\application\META-INF".
>>>> For example, I have weblogic specific file "weblogic-application.xml",
>>>> it
>>>> dost't lie in the default folder "src\main\application\META-INF", what
>>>> could
>>>> I do in this case?
>>>> I am using maven 2.1.0-M1.
>>>>
>>>> any idea would be appreciated.
>>>>
>>>> Thanks,
>>>> Thunder
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Listen to Your Heart
Follow Your Heart

Re: Maven ear plugin -- add files into META-INF folder

Posted by Markku Saarela <ma...@iki.fi>.
You could use 
<earSourceDirectory>${project.build.outputDirectory}</earSourceDirectory> and 
use normal build resources

<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>

and put this weblogic file in subdirectory META-INF also you can define 
additional resource directories there.. This way you can also filter 
these files.

rgds,

Markku

On 16.3.2010 8:16, Thunder Farmer wrote:
> Thanks.
>
> I do look into the "earSourcesDirectory" parameter.
> The problem is that files specified by "earSourcesDirectory " will be under
> root directory of the ear, rather than under ear/META-INF.
> Any idea for my issue?
>
> I just want some files out of default folder "src\main\application\META-INF"
> to be parckaged into ear/META-INF/
>
> Thanks,
> Thunder
>
> On Tue, Mar 16, 2010 at 1:18 PM, Markku Saarela<ma...@iki.fi>wrote:
>
>    
>> Hi,
>>
>> As in
>> http://maven.apache.org/plugins/maven-ear-plugin/examples/filtering-sources.htmlnoted use earSourcesDirectory.
>>
>> Rgds,
>>
>> Markku
>>
>>
>> On 16.3.2010 5:06, Thunder Farmer wrote:
>>
>>      
>>> Dear all,
>>>
>>> During ear packaging, is there any way to add my personal files into the
>>> ear/META-INF folder if I don't put it in the default source folder
>>> "src\main\application\META-INF".
>>> For example, I have weblogic specific file "weblogic-application.xml", it
>>> dost't lie in the default folder "src\main\application\META-INF", what
>>> could
>>> I do in this case?
>>> I am using maven 2.1.0-M1.
>>>
>>> any idea would be appreciated.
>>>
>>> Thanks,
>>> Thunder
>>>
>>>
>>>
>>>        
>>      
>
>    

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


Re: Maven ear plugin -- add files into META-INF folder

Posted by Thunder Farmer <th...@gmail.com>.
Thanks.

I do look into the "earSourcesDirectory" parameter.
The problem is that files specified by "earSourcesDirectory " will be under
root directory of the ear, rather than under ear/META-INF.
Any idea for my issue?

I just want some files out of default folder "src\main\application\META-INF"
to be parckaged into ear/META-INF/

Thanks,
Thunder

On Tue, Mar 16, 2010 at 1:18 PM, Markku Saarela <ma...@iki.fi>wrote:

> Hi,
>
> As in
> http://maven.apache.org/plugins/maven-ear-plugin/examples/filtering-sources.htmlnoted use earSourcesDirectory.
>
> Rgds,
>
> Markku
>
>
> On 16.3.2010 5:06, Thunder Farmer wrote:
>
>> Dear all,
>>
>> During ear packaging, is there any way to add my personal files into the
>> ear/META-INF folder if I don't put it in the default source folder
>> "src\main\application\META-INF".
>> For example, I have weblogic specific file "weblogic-application.xml", it
>> dost't lie in the default folder "src\main\application\META-INF", what
>> could
>> I do in this case?
>> I am using maven 2.1.0-M1.
>>
>> any idea would be appreciated.
>>
>> Thanks,
>> Thunder
>>
>>
>>
>


-- 
Listen to Your Heart
Follow Your Heart

Re: Maven ear plugin -- add files into META-INF folder

Posted by Markku Saarela <ma...@iki.fi>.
Hi,

As in 
http://maven.apache.org/plugins/maven-ear-plugin/examples/filtering-sources.html 
noted use earSourcesDirectory.

Rgds,

Markku

On 16.3.2010 5:06, Thunder Farmer wrote:
> Dear all,
>
> During ear packaging, is there any way to add my personal files into the
> ear/META-INF folder if I don't put it in the default source folder
> "src\main\application\META-INF".
> For example, I have weblogic specific file "weblogic-application.xml", it
> dost't lie in the default folder "src\main\application\META-INF", what could
> I do in this case?
> I am using maven 2.1.0-M1.
>
> any idea would be appreciated.
>
> Thanks,
> Thunder
>
>