On Oct 27, 2008, at 5:51 PM, Sergiu Dumitriu wrote:
Thomas Mortagne wrote:
Also I think we need to work more on the profiles so that we don't need to specify both "derby" and "glassfish-derby". Ideally we would only need to run:
mvn clean install -Pglassfish,derby
Not sure if it's doable or not but I think it might be possible
Well I think we could do that with something like /distribution/glassfish/derby with a <profiles> filter at each level.
And the amount of duplication is...
I'd rather have just one module, /distribution/. The differences between all the poms are minor. I know, the problem is that the released artifact will need to have a different name. Can't we just use a pom setting for this? I'm sure we can.
No we cannot. I went that route initially but it's not possible. The Maven mantra is one module one artifact and this shouldn't be changed with the current maven version. It only leads to issues. Duplications could be removed by using maven plugins + shared POM configurations. Thanks -Vincent