Hi Hermod, Thanks very much. > you need to go into settings/build/Sourcepath path and then add > src/main/resources as a new source folder. I don't exactly know what you indicated? I didn't find "settings/build/Sourcepath" in any configuration file(Eclipse or Maven).
But you have gave me very clue, and I set src/main/resources as src folder. Then the trouble disappeared. a cup of Java, cheers! Sha Jiang Hermod Opstvedt wrote: > > Hi > > No problem, you need to go into settings/build/Sourcepath path and then > add > src/main/resources as a new source folder. Remember to set target as the > default output folder > > Hermod > > > -----Opprinnelig melding----- > Fra: jiangshachina [mailto:[EMAIL PROTECTED] > Sendt: 2. november 2006 06:47 > Til: [email protected] > Emne: Eclipse knows "resources" dir? > > > myapp > |--pom.xml > |--LICENSE.txt > |--README.txt > |--target/ > |--src/ > |--main > |--java/ > |--webapp/ > |--WEB-INF/ > |--resources/ > Maven recommends "Application/Library resources" should be located at > resources. > And when run "mvn package", the files/directories would be copies into jar > file or classes dir(under WEB-INF dir). > > I'm using Eclipse, if I use the directory structure, a trouble appears. > Eclipse doesn't think files/dirs under resources are resources for jar > file. > Generally, resources would adhere to class files, then Eclipse can know > the > files are resources for jar. > > If I don't care resources dir, and put resource files into dir java, > Eclipse > would work well. > But when run "mvn package", the resource files don't be copied into jar > archive file. > > How can I resolve the problem? > Thanks! > > a cup of Java, cheers! > Sha Jiang > -- > View this message in context: > http://www.nabble.com/Eclipse-knows-%22resources%22-dir--tf2557880s177.html# > a7128152 > 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] > > > -- View this message in context: http://www.nabble.com/Eclipse-knows-%22resources%22-dir--tf2557880s177.html#a7128361 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
