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

Hervé Boutemy commented on MPIR-312:
------------------------------------

the problem is not in the report: look at effective pom, and you'll see that it 
is in the effective model

see 
http://maven.apache.org/ref/3.3.1/maven-model-builder/xref/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.html#L60
that is the code to fix (I don't see how) to have a better result when 
directory is not artifactId

(and the problem does not happen when building from source, with SCM checkout 
available: the problem is when the model is calculated from repository, then 
there is no SCM checkout available)

for such cases, where the "module directory = artifactId" convention is not 
used, you'll have to configure: yes, that's a result of "convention over 
configuration" mantra unless we find an algorithm to avoid requiring this 
convention

> Subversion SCM module URLs incorrectly build when module name != artifactId
> ---------------------------------------------------------------------------
>
>                 Key: MPIR-312
>                 URL: https://issues.apache.org/jira/browse/MPIR-312
>             Project: Maven Project Info Reports Plugin
>          Issue Type: Bug
>          Components: scm
>    Affects Versions: 2.7
>            Reporter: Michael Osipov
>
> 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.4#6332)

Reply via email to