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

Hervé Boutemy commented on MSITE-806:
-------------------------------------

thanks for the report and test project: I can reproduce the issue
Yes, with no report defined nor Doxia document written, with maven-site-plugin 
3.6 you get maven-project-info-reports-plugin reports, but these reports are 
not automagically added any more with version 3.7...

looks like it is an unexpected side effect of MSITE-792, since this report 
plugin is added through reportPlugins element:
{noformat}$ mvn help:effective-pom
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------< hu.unideb.inf.maven:maven-hello >-------------------
[INFO] Building maven-hello 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-help-plugin:2.2:effective-pom (default-cli) @ maven-hello ---
[INFO] 
Effective POMs, after inheritance, interpolation, and profiles are applied:
[...]
    <plugins>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.7</version>
        <executions>
          <execution>
            <id>default-site</id>
            <phase>site</phase>
            <goals>
              <goal>site</goal>
            </goals>
            <configuration>
              
<outputDirectory>/home/herve/tmp/maven-hello/target/site</outputDirectory>
              <reportPlugins>
                <reportPlugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-project-info-reports-plugin</artifactId>
                </reportPlugin>
              </reportPlugins>
            </configuration>
          </execution>
[...]{noformat}

I'll see how to fix that in a later release, because a minimum default report 
configuration is useful

waiting for that, please add explicitly the report plugin (in reporting section)

> Site generation does not work when no report configured nor Doxia document 
> provided
> -----------------------------------------------------------------------------------
>
>                 Key: MSITE-806
>                 URL: https://issues.apache.org/jira/browse/MSITE-806
>             Project: Maven Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.7
>         Environment: Apache Maven 3.5.2 
> (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00)
> Maven home: /opt/apache-maven-3.5.2
> Java version: 9.0.1, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-9-oracle
> Default locale: hu_HU, platform encoding: UTF-8
> OS name: "linux", version: "3.13.0-37-generic", arch: "amd64", family: "unix"
>            Reporter: Peter Jeszenszky
>             Fix For: 3.7.1
>
>         Attachments: maven-hello.zip
>
>
> Running "mvn site" results in a target/site/ directory without any HTML 
> files. The resulting directory contains only the css/ and the images/ 
> subdirectories.
> I have attached a small project to reproduce the bug (?). Switching back to 
> version 3.6 of the plugin solves the problem.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to