Also, if you're not yet using it, get m2eclipse and import your Maven project. src/main/resources will be treated as source folder automatically.
Best regards, Eric -----Ursprüngliche Nachricht----- Von: Stephen Connolly [mailto:[email protected]] Gesendet: Mittwoch, 28. Oktober 2009 15:27 An: Maven Users List Betreff: Re: resouce files not in the built jar 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
