You must not define an outputdirectory but multiple resource directories. As
soon as you declare resource directories in your pom, the files stored in
thoses directories will be included verbatim (or filtered if you want) in
your outputdirectory and jar file.

Jeff MAURY

2008/3/17 Pierre-Alexandre Lacerte <[EMAIL PROTECTED]>:

> The problem is that I can't define multiple outputDirectory in my
> pom, corresponding to the location of my different files.
>
> Ex:
>
> With this in my pom :
>
>      <resource>
>
>  <directory>src/dats/common/businessobjects/</directory>
>                 <filtering>true</filtering>
>                 <includes>
>                     <include>**/*.xml</include>
>                 </includes>
>      </resource>
>
> The files are copied in the base directory of my Jar, and not in the
> dats/common/businessobjects/ directory.
>
> I already have 1 value of outputDirectory corresponding to the
> directory where I want to send my compiled classes.
>
>
>
>
>
> On 17-Mar-08, at 6:22 PM, Jeff MAURY wrote:
>
> > You must define multiple resource directories in your pom.
> >
> > Jeff MAURY
> >
> > On Mon, Mar 17, 2008 at 10:40 PM, Pierre-Alexandre Lacerte <
> > [EMAIL PROTECTED]> wrote:
> >
> >> Hi,
> >>
> >> I have many resources (log4j properties, hibernate hbm.xml files,
> >> etc.) in different directories in my project. I would like to copy
> >> them in the same path in my packaged Jar file.
> >> Is it possible?
> >> I can't find a way to define multiple outputDirectory values.
> >>
> >>
> >> Thanks
> >>
> >> Pierre
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > La mélancolie c'est communiste
> > Tout le monde y a droit de temps en temps
> > La mélancolie n'est pas capitaliste
> > C'est même gratuit pour les perdants
> > La mélancolie c'est pacifiste
> > On ne lui rentre jamais dedans
> > La mélancolie oh tu sais ça existe
> > Elle se prend même avec des gants
> > La mélancolie c'est pour les syndicalistes
> > Il faut juste sa carte de permanent
> >
> > Miossec (2006)
> >
> > http://www.jeffmaury.com
> > http://riadiscuss.jeffmaury.com
>
>


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

Reply via email to