maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Walding <...@walding.com>
Subject Re: Resources not going into proper directory in jar file.
Date Wed, 16 Jul 2003 13:31:56 GMT
You want:

<resource>
           <directory>src</directory>
           <includes>
               <include>package/images/**/*.gif</include>
           </includes>
</resource>


No idea of whether that target path thing works or not, but it isn't 
required.

Erik Husby wrote:

> I am a new user of Maven and most likely are simply missing something.
>
> I have this existing project structure
>    src/package/images/group1/*.gif
>    src/package/images/group2/*.gif
>    src/package/*.java
>
> I want the contents of  src/package/images to end up in the jar file 
> under "package/images/group1" and "package/images/group2"
>
> I have the resource defined as
> <resource>
>            <directory>src/package/images</directory>
>            <includes>
>                <include>**/*.gif</include>
>            </includes>
>            <targetpath>package/images</targetpath>
>        </resource>
>
> But all the images end up in the jar file at the root directory level. 
> No "package/images/group1" or "package/images/group2" gets created.
>
> What is the proper way to get the gif files into the proper directories?
>
> Thanks in advance.
>



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


Mime
View raw message