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<[email protected]>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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to