---- dddzzz <[EMAIL PROTECTED]> schrieb: > > > > Heinrich Nirschl wrote: > > > > > > Put them into src/main/resources. > > > > > > I want them to be in same folder that classes are.
That's a reasonable way to structure your code I think. I always used to put resources together with the code that used them. However maven doesn't support that by default; instead it assumes that runtime resources are kept in a separate directory tree from the source. If you want to have everything combined, you need to explicitly configure the resources directory, together with filters to filter out the files that you do not want copied (eg *.java). I *guess* that the reason why maven has this default behaviour is that the final jar that is to be build (normally) contains .class files plus runtime resources, *but not source code*. That means that the build tool would need to determine which files in the source-code directories adddzzz <[EMAIL PROTECTED]>re "source code" that should not be in the final jar, and which files are "runtime resources" that should be in the final jar. That is not just a matter of excluding "*.java", so users would need to add configuration to state what they want and what they don't want. Having a separate resource dir avoids the need for this configuration. But in summary, if you want one combined source and resources dir, you will need extra config in your pom to set that up. Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
