You're bringing up a different question than he is. He said he was trying to
create more than one artifact from one project. I'm just trying to stop him
from going down THE COMPLETELY WRONG PATH.

What happens is that someone doesn't follow Maven conventions. Later on
he/she is going to run into issues and come back here and ask us to help
sort things out. I'm trying to prevent that. Don't fight Maven! Or you're on
your own...

You may think I'm harsh, but I'm actually helping him.

/Anders

PS. The pom_1.xml, pom_2.xml, etc thought is very bad. Everyone, please
ignore that suggestion!

On Fri, Aug 20, 2010 at 20:36, Haszlakiewicz, Eric
<[email protected]>wrote:

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

Reply via email to