because resources should be in src/main/resources/___ and not
src/main/java/___

eclipse is a fool... maven is a know-all

-Stephen

2009/10/28 thomas2004 <[email protected]>

>
> 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]
>
>

Reply via email to