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

Marcin Wisnicki commented on MSITE-745:
---------------------------------------

It's been a while since I've needed this but I've reproduced the problem with 
latest Maven (3.5.8) and Site plugin (3.12.0).

It's not as severe since the generated HTML is linked to this unfortunate 
hierarchy but it would be nicer if the directory hierarchy was correct.

Attached project. To repro extract and run: 
{code:java}
./mvnv site site:stage
find target -name index.html{code}

{noformat}
target/staging/A/A/index.html
target/staging/B/B/index.html
target/staging/B/B1/B/B1/index.html
target/staging/index.html{noformat}


> Multimodule projects staged in wrong directory
> ----------------------------------------------
>
>                 Key: MSITE-745
>                 URL: https://issues.apache.org/jira/browse/MSITE-745
>             Project: Maven Site Plugin
>          Issue Type: Bug
>          Components: site:stage(-deploy)
>    Affects Versions: 3.3
>            Reporter: Marcin Wisnicki
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>         Attachments: MSITE-745.zip
>
>
> All child projects are put into subdirectory that is inside subdirectory of 
> the same name, eg:
> given tree of projects:
>  * R
>  ** A
>  ** B
>  *** B1
> where R and B are aggregate projects as well as parents of their respective 
> children.
> R/pom.xml:
> {code}
>   <distributionManagement>
>      <site>
>         <id>${project.artifactId}-site</id>
>         <url>${project.baseUri}</url>
>      </site>
>   </distributionManagement>
> {code}
> site:stage should generate:
> {code}
> R/target/stagging/A/index.html
> R/target/stagging/B/index.html
> R/target/stagging/B/B1/index.html
> {code}
> but instead produces:
> {code}
> R/target/stagging/A/index.html
> R/target/stagging/B/B/index.html
> R/target/stagging/B/B1/B/B1/index.html
> {code}
> I'll try to attach example project later.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to