|
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 |
|
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 > > |
|
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 <[hidden email]>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 |
|
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<[hidden email]>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: [hidden email] For additional commands, e-mail: [hidden email] |
|
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 <[hidden email]>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<[hidden email] >> >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: [hidden email] > For additional commands, e-mail: [hidden email] > > -- Listen to Your Heart Follow Your Heart |
| Powered by Nabble | Edit this page |
