Rafał Krzewski
ungelesen,04.11.2012, 19:48:4804.11.12Anmelden, um dem Autor zu antworten
Zum Weiterleiten anmelden
Sie sind nicht berechtigt, Nachrichten in dieser Gruppe zu löschen
Originalnachricht anzeigen
Entweder sind die E-Mail-Adressen für diese Gruppe anonym oder Sie benötigen die Berechtigung zum Ansehen der E-Mail-Adressen der Mitglieder, um die Originalnachricht anzusehen
an scala...@googlegroups.com, Rafał Krzewski, Naftoli Gugenheim, kostas....@googlemail.com
Hi Konstantinos,
I haven't thought of that. It's actually a big problem which makes single branch / multiple profiles approach untenable. Why? I am using classifier dimension of Maven coordinates to store scala version of an artifact. Existing maven tools use the classifier differently. They expect that it has a verbatim value "sources" or "javadoc", hence a whole family of artifacts that differ only in classifier share a single "sources" and "javadoc" artifact.
Since classifier cannot be used to store scala version if one wants to keep m2e "download sources" functionality scala version information needs to be put into another Maven coordinate. Version number looks like the obvious one to use, but in fact it is not: Maven has a notion of dependency range versions (a bit like OSGi) and therefore needs to compare version numbers which in turn requires a rigid format convention, see:
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution
This leaves us artifactId as the only place where scala version qualifier may be stored. This poses a problem with single branch / multiple profiles project layout because a profile may not override main Maven coordinate elements (/parent/groupId, /parent/artifactId, /parent/version, /groupId, /artifactId, /version) and variables are not expanded in those - or at lease they haven't been the last time I checked :)
Attaching required scala version number to the end of artifactId, separated by an underscore is a convention used by some projects eg ScalaTest, and I think it's the default convention used by SBT.
It looks like you will need to do the branch juggling after all.
Cheers,
Rafał