You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pierre-Alexandre Lacerte <pi...@gmail.com> on 2008/03/17 22:40:01 UTC
Adding Resources to Jar
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Adding Resources to Jar
Posted by Jeff MAURY <je...@jeffmaury.com>.
When you declare a resource directory, it is considered as a root folder. So
if you want to see your resource at another place in your jar, remove some
ending parts of your resource directory (src/main/java for example).
Jeff MAURY
2008/3/19 Pierre-Alexandre Lacerte <pi...@gmail.com>:
> I tried to create sample project and added an external resource (xml
> file) to test what you said.
>
> mvn archetype:create \
> -DarchetypeGroupId=org.apache.maven.archetypes \
> -DgroupId=com.mycompany.app \
> -DartifactId=my-app
>
>
> Result : The xml is not copied in the same directory in the Jar (src/
> main/java/com/mycompany/app/) , but is instead copied in the base
> directory.
>
> Here is my pom.xml:
>
> ==========
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
> www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://
> maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.mycompany.app</groupId>
> <artifactId>my-app</artifactId>
> <packaging>jar</packaging>
> <version>1.0-SNAPSHOT</version>
> <name>my-app</name>
> <url>http://maven.apache.org</url>
>
> <build>
> <resources>
> <resource>
> <directory>src/main/java/com/mycompany/app/</directory>
> <filtering>false</filtering>
> <includes>
> <include>**/*.xml</include>
> </includes>
> </resource>
> </resources>
> </build>
>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
> </project>
>
> ===================
>
> Please help :/
>
> Pierre
>
>
>
>
> On 17-Mar-08, at 6:47 PM, Jeff MAURY wrote:
>
> > 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
> > <pi...@gmail.com>:
> >
> >> 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 <
> >>> pierrealexandre.lacerte@gmail.com> 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: users-unsubscribe@maven.apache.org
> >>>> For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>> --
> >>> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
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
Re: Adding Resources to Jar
Posted by Pierre-Alexandre Lacerte <pi...@gmail.com>.
I tried to create sample project and added an external resource (xml
file) to test what you said.
mvn archetype:create \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=com.mycompany.app \
-DartifactId=my-app
Result : The xml is not copied in the same directory in the Jar (src/
main/java/com/mycompany/app/) , but is instead copied in the base
directory.
Here is my pom.xml:
==========
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://
maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>my-app</name>
<url>http://maven.apache.org</url>
<build>
<resources>
<resource>
<directory>src/main/java/com/mycompany/app/</directory>
<filtering>false</filtering>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
===================
Please help :/
Pierre
On 17-Mar-08, at 6:47 PM, Jeff MAURY wrote:
> 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
> <pi...@gmail.com>:
>
>> 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 <
>>> pierrealexandre.lacerte@gmail.com> 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: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>> --
>>> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Adding Resources to Jar
Posted by Jeff MAURY <je...@jeffmaury.com>.
a resource directory is a source directory where you should stored your
resource files and not a target directory where they will be copied. So
declare a resource directory as the one where your files are stored !!!
Jeff MAURY
2008/3/18 Pierre-Alexandre Lacerte <pi...@gmail.com>:
> Ok,
>
> Well it is not working.
>
> All the files are copied in my bin directory, but not in the
> directory I defined in the resource tag. (<directory>src/dats/common/
> businessobjects/</directory>)
>
> bin is my outputDirectory
>
> Do you have any clue how to debug this?
>
> Pierre
>
> On 17-Mar-08, at 6:47 PM, Jeff MAURY wrote:
>
> > 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
> > <pi...@gmail.com>:
> >
> >> 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 <
> >>> pierrealexandre.lacerte@gmail.com> 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: users-unsubscribe@maven.apache.org
> >>>> For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>> --
> >>> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
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
Re: Adding Resources to Jar
Posted by Pierre-Alexandre Lacerte <pi...@gmail.com>.
Ok,
Well it is not working.
All the files are copied in my bin directory, but not in the
directory I defined in the resource tag. (<directory>src/dats/common/
businessobjects/</directory>)
bin is my outputDirectory
Do you have any clue how to debug this?
Pierre
On 17-Mar-08, at 6:47 PM, Jeff MAURY wrote:
> 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
> <pi...@gmail.com>:
>
>> 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 <
>>> pierrealexandre.lacerte@gmail.com> 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: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>>
>>> --
>>> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Adding Resources to Jar
Posted by Jeff MAURY <je...@jeffmaury.com>.
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 <pi...@gmail.com>:
> 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 <
> > pierrealexandre.lacerte@gmail.com> 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: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > --
> > 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
Re: Adding Resources to Jar
Posted by Pierre-Alexandre Lacerte <pi...@gmail.com>.
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 <
> pierrealexandre.lacerte@gmail.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> 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
Re: Adding Resources to Jar
Posted by Jeff MAURY <je...@jeffmaury.com>.
You must define multiple resource directories in your pom.
Jeff MAURY
On Mon, Mar 17, 2008 at 10:40 PM, Pierre-Alexandre Lacerte <
pierrealexandre.lacerte@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
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