[ 
http://jira.codehaus.org/browse/MSITE-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116510
 ] 

Benjamin Bentmann commented on MSITE-277:
-----------------------------------------

I experienced this change, too, but it was not caused by 
maven-site-plugin:2.0-beta-6 but actually by Maven itself after I updated to 
2.0.8. The change is caused by the fix for MNG-3134 where they brought the URL 
inheritance for the site in line with the other URL inheritance for SCM. In 
other words, the directory layout of the site resembles the layout of the 
source repository.

Isabelle, you need not wait for an option to get the old layout back. All that 
happened is that Maven changed the default handling when inheriting 
${project.distributionManagement.site.url}. You can put a 
<distributionManagement> element in every of your sub POMs to specify the 
desired location and overwrite the otherwise inherited URL.

Nevertheless, I would appreciate some kind of option like a new POM element, 
too. Could imagine something like this:
{code:xml}
<distributionManagement>
  <site>
    <url>...</url>
    <!-- How shall the URL be adjusted when inherited by sub modules?
         default: As Maven 2.0.8 does, i.e. keep the layout from source 
repository
         flat:    deploy sub module to same directory as parent
         nested:  deploy sub module immediately into directory of parent
    -->
    <adjustment>default|flat|nested</adjust>
  </site>
</distributionManagement>
{code}
This would allow for a central configuration of the site layout and spare one 
from copy&paste'ing in the sub POMs.

> site:deploy possibility to choose directory tree when using sub-modules
> -----------------------------------------------------------------------
>
>                 Key: MSITE-277
>                 URL: http://jira.codehaus.org/browse/MSITE-277
>             Project: Maven 2.x Site Plugin
>          Issue Type: Improvement
>          Components: site:deploy
>    Affects Versions: 2.0-beta-6
>            Reporter: Guimiot Isabelle
>            Priority: Minor
>
> I use Eclipse and my modules (root and submodules) are all at the same level 
> in the directory tree :
> [eclipse_workspace]/root
> [eclipse_workspace]/sub1
> [eclipse_workspace]/sub2
> Until the 2.0-beta-5 of the maven site plugin, when I deployed my site, I 
> obtained this tree :
> [publish]/root
> [publish]/root/sub1
> [publish]/root/sub2
> I installed the beta-6 version, and the default behaviour has changed, I now 
> have every module at the same level :
> [publish]/root
> [publish]/sub1
> [publish]/sub2
> So I just wondered if it was possible to have an option to choose whether we 
> prefer to publish the submodules inside the root directory, or at the same 
> level... ?
> thx
> Isabelle

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to