Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.5, 3.1.1, 3.2.5, 3.3.9
-
None
Description
What I am trying to achieve is
the definition of a project.url in a parent pom
in a way that all children inherit a url ending with
${project.groupId}/${project.artifactId}/${project.version}/
in order to be able to publish sites of all artifacts in all versions in parallel
without having to redefine the url in every child pom.
This is currently not working as expected in maven due to the default child urls calculation which leads to urls that add up parent urls like
http://my.domain.de/sites/de.enterprise.calculatorsGroupId/calculator-artifactID/1.0.0-SNAPSHOT/internetAppParentPOM/calculatorParentPom/calculator-artifactID/
The part "internetAppParentPOM/calculatorParentPom/" is added by automatic child url calculation (those are the artifactIds of all parent poms beneath our enterprise parent pom where the url is defined) and is expexted to not be there at all. The repeated artifactID at the end of the url is superfluous as well but tollerable.
I expect maven-core to be changed so that I can turn on/off the automatic calculation of child URLs as an option which is by default on (current behaviour so nothing will change unless configured explicitly).
See the discussion in MSITE-672.
As this can not be done in the maven-site-plugin there needs to be a change in Maven itself (core), in Maven Model Builder, ie the way effective model is calculated, and more precisely in the inheritance step: http://maven.apache.org/ref/current/maven-model-builder/.
Implemented solution in Maven 3.6.0 (attribute names reworked in Maven 3.6.1, see MNG-6059):
<project child.inherit.append.path="false"> <url>...</url> <scm child.inherit.append.path="false"> <connection>...</connection> <developerConnection>...</developerConnection> <url>...</url> </scm> <distributionManagement> <site child.inherit.append.path="false"> <url>...</url> </site> </distributionManagement> </project>
Attachments
Attachments
Issue Links
- contains
-
MNG-4508 No way to avoid adding artifactId to site urls
- Closed
- depends upon
-
MNG-5871 make url inheritance algorithm more visible
- Closed
- is duplicated by
-
MNG-3244 inherited site url not properly handling parameters
- Closed
- is related to
-
MNG-6505 child.(x.y).inherit.append.path value should be inherited
- Closed
-
MNG-6639 Child inherit.append.path attributes not defined in Maven POM XSD
- Closed
- is superceded by
-
MNG-6059 Important use cases not covered, as child.inherit.append.path affects all children
- Closed
- relates to
-
MPIR-234 SCM-link in site of multimodule projects should not append module name by default (at least for git)
- Closed
-
MNG-5878 add support for module name != artifactId in every calculated URLs (project, SCM, site): special project.directory property
- Closed
-
MSITE-672 Inheritance of site deploy URL not done in child
- Reopened
- supercedes
-
SCM-800 scm connection, developerConnection and url add artifactId at the end when they are inherited.
- Open
-
MNG-3244 inherited site url not properly handling parameters
- Closed
-
MNG-5870 Effective pom should not inherit SCM
- Open
-
MNG-6159 Child path adjustments break git scm urls
- Closed
- mentioned in
-
Page Loading...