PR: MPSITE-50
Submitted by: Shinobu Kawai New property maven.site.reports.ignoreErrors to ignore any errors in all reports during site generation. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@392015 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -47,7 +47,21 @@
|
||||
<j:set var="reportName" value="${report.get('pluginName')}"/>
|
||||
<j:if test="${!empty(reportName)}">
|
||||
<echo>Generating the ${report.get('name')}...</echo>
|
||||
<attainGoal name="${reportName}:report"/>
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${context.getVariable('maven.site.reports.ignoreErrors') == 'false'}">
|
||||
<attainGoal name="${reportName}:report"/>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<j:catch var="ex">
|
||||
<attainGoal name="${reportName}:report"/>
|
||||
</j:catch>
|
||||
<j:if test="${ex != null}">
|
||||
<echo> *** WARNING: Error ignored: ${ex}</echo>
|
||||
</j:if>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
|
||||
</j:if>
|
||||
</j:forEach>
|
||||
</goal>
|
||||
|
||||
@@ -33,6 +33,7 @@ maven.site.gunzip.options=-fn
|
||||
maven.site.chmod.options=-Rf
|
||||
maven.site.chmod.mode=775
|
||||
maven.site.failonerror=true
|
||||
maven.site.reports.ignoreErrors=false
|
||||
|
||||
maven.rsync.executable=rsync
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.7-SNAPSHOT" date="In SVN">
|
||||
<action dev="ltheussl" type="add" issue="MPSITE-50" due-to="Shinobu Kawai">New property <code>maven.site.reports.ignoreErrors</code> to ignore any errors in all reports during site generation.</action>
|
||||
<action dev="aheritier" type="add">New property <code>maven.site.gunzip.options</code> can be used to set options when using gunzip (default value is -f).</action>
|
||||
<action dev="ltheussl" type="fix" issue="MPSITE-40">Missing <code>maven.ssh.args</code> in <code>site:publish</code>.</action>
|
||||
<action dev="aheritier" type="fix" issue="MPSITE-39">Deploy site on unix create rights rwxr-xr-x. Group members can't override files. The default value for <code>maven.site.chmod.mode</code> is now <code>755</code>.</action>
|
||||
|
||||
@@ -190,6 +190,19 @@
|
||||
Defaults to <code>true</code>.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.site.reports.ignoreErrors</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Set this to <code>true</code> to ignore any errors
|
||||
in all reports during site generation.
|
||||
<strong>Note</strong> that this overrides all
|
||||
corresponding settings of the plugins used
|
||||
to generate the reports and
|
||||
might lead to broken links on your site.
|
||||
Defaults to <code>false</code>.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
<section name="Using Putty as ssh client">
|
||||
|
||||
Reference in New Issue
Block a user