>-----Original Message----- >From: [email protected] [mailto:[email protected]] On >Behalf Of Anders Hammar > >Don't fight Maven! Create one project for each artifact you want, it's a >Maven Golden Rule. > >/Anders
So what do you do when your jar files actually have some of the same contents? Are you going to make multiple copies of your source files? One option I could think of is having multiple pom.xml's in a directory (e.g. pom_1.xml, pom_2.xml, etc...) and running maven with each one, but if the include/exclude stuff doesn't work, that won't help. Even if trying to build 10 different jar files from one pom isn't recommended, don't you think it would be a bit nicer of you to explain why the include/exclude lines don't work, instead of just brushing it away? So, ignoring the fact that he's building different jar, and looking at the snippet he provided: Based on what the docs for the maven-compiler-plugin say, it looks to me like that configuration should work, so either it's a bug in the plugin, or there's some quirk about the configuration that is preventing it from working. Jack, I'd recommend putting together a minimal pom with a couple of source files, and check whether the exclude/include stuff works for that. If it still doesn't, post the whole pom.xml file, and the exact mvn command you use. eric --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
