Would it be better to have a syntax to mark a URL as literal, not to be
calculated or used as the basis of calculation?
That way, we don't have to worry about adjusting to new SCMs or other
places where we want to use it...new SCMs could be added via build
extension, IIRC, so this is particularly important there.
WDYT?
On 7/28/11 12:46 PM, Mark Struberg wrote:
Hi!
problem description
-----------
SCM URLs currently automatically get extended for child modules.
E.g. from
svn://mycompany.com/myproject
in the parent pom, a child module 'frontend' will result in getting a SCM URL
svn://mycompany.com/myproject/frontend
This is fine for SVN and CVS, but broken for GIT, HG, etc because the SCM URL
is 'static' for them.
proposal
-----------
Since we cannot put this information into the various scm plugins (because of a
'definition cycle' as explained here [1]) we could split the URL construction
into scmUrlAppendChild=true/false and make it configurable. The configuration
could be controlled via a Modello config, my suggestion would be to just add
them to toolchains.mdo.
I'd just add a String property which holds a regular expression which parses
the SCM URL and decides upon this whether the appending should get activated,
e.g. for all SCMs which contain 'scm:svn:' or 'scm:cvs:' or the java-svn
(olamy, you know the plexus key for that?)
If there is a better place to put that config or a better way to get the info,
then please speak up now :)
I think this change would be backward compatible and doesn't need any pom
changes. It also could easily get back-ported to mvn2 if needed.
Are there other URLS which also need a similar distinction while building the
model?
WDYT?
txs and LieGrue,
strub
[1] http://markmail.org/message/npw3hp6aloa55ctf
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org
--
John Casey
Developer, PMC Chair - Apache Maven (http://maven.apache.org)
Blog: http://www.johnofalltrades.name/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org