ah! no, don't do that. Resources belong in /src/main/resources and are
automatically pulled into the jar. Manually adding the java folder
just undoes some of the maven conventions.

On Wed, Oct 28, 2009 at 10:22 AM, KOUKI Fakhreddine
<[email protected]> wrote:
> Hi ,
>
> Put this on your Pom :
>
> <build> ...
>
> <resources>
>
> <resource>
>
> <directory>src/main/java</directory>
>
> <excludes>
>
> <exclude>**/*.java</exclude>
>
> </excludes>
>
> </resource>
>
> </resources>
> </build>
>
>
> On 10/28/09, thomas2004 <[email protected]> wrote:
>>
>>
>> Hi all,
>>
>> I use maven 2.0.9 and Eclipse to build my program. But I met a strange
>> thing: I put some resource files such as "context.xml" in the same package
>> as my java files. But after I built the project/program with mvn clean
>> package, I can't find the "context.xml" inside the jar. That's the reason
>> why I got FileNotFoundException as I run the program.
>>
>> Someone knows why?
>> --
>> View this message in context:
>> http://www.nabble.com/resouce-files-not-in-the-built-jar-tp26095189p26095189.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to