You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2017/02/01 07:11:52 UTC

[jira] [Commented] (MNG-5878) add support for module name != artifactId in every calculated URLs (project, SCM, site): special project.directory property

    [ https://issues.apache.org/jira/browse/MNG-5878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15848077#comment-15848077 ] 

Hudson commented on MNG-5878:
-----------------------------

FAILURE: Integrated in Jenkins build maven-3.x #1535 (See [https://builds.apache.org/job/maven-3.x/1535/])
[MNG-5878] added project.directory property to support module name != (hboutemy: [http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=9b763cc002e9a4e247baf7538727da5a29a6ce0b])
* (add) maven-model-builder/src/test/resources/poms/inheritance/module-path-not-artifactId-parent.xml
* (add) maven-model-builder/src/test/resources/poms/inheritance/module-path-not-artifactId-child.xml
* (edit) maven-model/src/main/mdo/maven.mdo
* (edit) maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java
* (edit) maven-model-builder/src/site/apt/index.apt
* (edit) maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java
* (add) maven-model-builder/src/test/resources/poms/inheritance/module-path-not-artifactId-expected.xml


> add support for module name != artifactId in every calculated URLs (project, SCM, site): special project.directory property
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-5878
>                 URL: https://issues.apache.org/jira/browse/MNG-5878
>             Project: Maven
>          Issue Type: New Feature
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.3.3
>            Reporter: Michael Osipov
>            Assignee: Hervé Boutemy
>             Fix For: 3.5.0
>
>
> Say you have this project structure:
> {noformat}
> /
>   |-- module1
>   |-- module2
> {noformat}
> and artifactIds are named:
> {noformat}
> my-parent
>   |-- my-module1
>   |-- my-module2
> {noformat}
> Prefix {{my-}} is omitted for brevity in module names. For instance, Jersey does that.
> When the SCM report is built, the artifactId is always used for path composition which leads to incorrect URLs. You can of course set the parameter {{checkoutDirectoryName}} but this would be extremely tedious for all modules down the tree.
> The code should obtain the module name and use it for URL composition.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)