Mirko Friedenhagen created SUREFIRE-999:
-------------------------------------------

             Summary: Skip phase `validate` during site-generation for 
`report-only` resp. `failsafe-report-only` 
                 Key: SUREFIRE-999
                 URL: https://jira.codehaus.org/browse/SUREFIRE-999
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Report Plugin
    Affects Versions: 2.14.1, 2.15
            Reporter: Mirko Friedenhagen


* We have a lot of projects in our CI system (Jenkins) where we run {{mvn clean 
deploy site-deploy}}. 
* Because of this, we do not repeat test execution again during phase {{site}} 
by defining the {{reportSet}} to include {{report-only}}.
* However, {{report-only}} does invoke the phase {{validate}} again which will 
execute some lengthy {{enforcer}} checks.
* I created a clone of {{maven-surefire}} where I did redefine {{report-only}} 
to not fork the lifecyle and have a small integration-test project 
https://github.com/mfriedenhagen/pastebin/tree/surefire-reportonly-test which 
will show the issue:
* Running {{mvn -e}} will produce the following output:
{code}
[INFO] --- maven-site-plugin:3.0:site (default-site) @ surefire-reportonly-test 
---
[INFO] configuring report plugin org.apache.maven.plugins:maven-jxr-plugin:2.3
[INFO] configuring report plugin 
org.apache.maven.plugins:maven-surefire-report-plugin:2.14.1
[INFO]
[INFO] >>> maven-surefire-report-plugin:2.14.1:report-only (report:report-only) 
@ surefire-reportonly-test >>>
[INFO]
[INFO] <<< maven-surefire-report-plugin:2.14.1:report-only (report:report-only) 
@ surefire-reportonly-test <<<
[INFO]
[INFO] >>> maven-surefire-report-plugin:2.14.1:failsafe-report-only 
(report:failsafe-report-only) @ surefire-reportonly-test >>>
[INFO]
[INFO] <<< maven-surefire-report-plugin:2.14.1:failsafe-report-only 
(report:failsafe-report-only) @ surefire-reportonly-test <<<
[INFO] Relativizing decoration links with respect to project URL: 
https://github.com/mfriedenhagen/pastebin
{code}
* When running {{mvn -e -Dmaven-surefire-plugin.version=2.15-SNAPSHOT}} the 
following output will be produced:
{code}
[INFO] --- maven-site-plugin:3.0:site (default-site) @ surefire-reportonly-test 
---
[INFO] configuring report plugin org.apache.maven.plugins:maven-jxr-plugin:2.3
[INFO] configuring report plugin 
org.apache.maven.plugins:maven-surefire-report-plugin:2.15-SNAPSHOT
[INFO] Relativizing decoration links with respect to project URL: 
https://github.com/mfriedenhagen/pastebin
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 
skin.
[INFO] Skipped "Test Source Xref" report, file "xref-test/index.html" already 
exists for the English version.
[INFO] Generating "Test Source Xref" report    --- maven-jxr-plugin:2.3
[INFO] Generating "Surefire Report" report    --- 
maven-surefire-report-plugin:2.15-SNAPSHOT
[INFO] Generating "Failsafe Report" report    --- 
maven-surefire-report-plugin:2.15-SNAPSHOT
[INFO] ------------------------------------------------------------------------
{code}

I will include the pull request in a comment.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to