On Tue, February 28, 2012 2:13 pm, Benson Margulies wrote: > Let me try to arrange the explanation here in good order. > > Classifiers were not designed to allow for 'different flavors of one > artifact'. They were designed to allow an artifact to have an > entourage, such as its sources or javadoc. > > So, to begin with, there's no way to ask Maven to set a non-"" > classifier for the main artifact with packaging jar. > > Further, there are corner cases of dependency management that will get > you in this case. > > The maven model is really that you would use different artifactIds for > the different 'flavors'. You might accomplish this with an aggregating > pom and a bunch of modules, one per flavor, for example. > > No it's not entirely satisfactory. This is just not a case that Maven > is designed to support well, and you should seriously consider > alternatives.
While I agree with Benson if you still want to make it happen you could use the build helper plugin with the attachArtifact goal. manfred --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
