Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
2.2.1, 3.0.3
-
None
-
None
Description
In sub-modules, URLs in the MavenModel will automatically get expanded by adding the artifactId of the very sub-module.
This is fine for e.g. a SVN scm URL but breaks other SCMs like git or hg.
Proposal:
We should introduce a 'static:' prefix for URLs which must not get automatically expanded in submodules.
An example:
<scm>
<developerConnection>static:scm:git:https://myserver.com/gitrepo/...
The 'static:' info will get removed while parsing the pom.
Compat notes:
I've tried that such scm URLs with mvn-3.0.3 and mvn-2.2.1 in
<scm><connection>, <developerConnection>, <url>, <distributionManagement><site><url>
and got no error building my project. Of course, if you use the 'static:' prefix then you cannot release or do other site and scm tasks with an old maven version anymore. But that part is considered to be broken anyway at the moment