[
https://issues.apache.org/jira/browse/MNG-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15069641#comment-15069641
]
Hervé Boutemy commented on MNG-5951:
------------------------------------
now: I created a branch to continue investigations and discussions before
deciding to merge in HEAD or not
here is the commit
[8d85f5d0|http://git-wip-us.apache.org/repos/asf/maven/commit/8d85f5d0]
I intended to add the XML attribute on each of the 5 fields, but could not
since the fields are just Strings: would require to change them into complex
types
then I added the XML attribute on parent complex type, which leads to 3
locations: project, project.scm and project.distributionManagement.site
I don't know if there are use cases where 1 unique conf for project.scm is not
enough, since we could need to differentiate connection from url?
once we are ok, IMHO, we need to have some discussion on dev@ mailing list...
> add an option to avoid path addition to inherited URLs
> ------------------------------------------------------
>
> Key: MNG-5951
> URL: https://issues.apache.org/jira/browse/MNG-5951
> Project: Maven
> Issue Type: Improvement
> Components: Inheritance and Interpolation
> Affects Versions: 3.0.5, 3.1.1, 3.2.5, 3.3.9
> Reporter: Jörg Sesterhenn
> Attachments: MNG-5951.zip
>
>
> 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
> {code}
> ${project.groupId}/${project.artifactId}/${project.version}/
> {code}
> 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/.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)