You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/07/07 15:44:55 UTC

[maven-reporting-exec] branch master updated (2022178 -> 9cc1489)

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git


    from 2022178  [MSHARED-1282] Upgrade plugins and components (in ITs)
     add 6f894ba  Fix SCM tag
     new 9cc1489  [MSHARED-1283] Upgrade to Maven Reporting API 4.0.0-M7/Maven Reporting Impl 4.0.0-M9

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                                             | 6 +++---
 src/it/reportConfig/pom.xml                                         | 2 +-
 .../java/org/apache/maven/reporting/exec/MavenReportExecution.java  | 4 +++-
 3 files changed, 7 insertions(+), 5 deletions(-)


[maven-reporting-exec] 01/01: [MSHARED-1283] Upgrade to Maven Reporting API 4.0.0-M7/Maven Reporting Impl 4.0.0-M9

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-reporting-exec.git

commit 9cc1489cd1a0a9495508cb97ff76d208568491c7
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sat Jun 24 22:18:15 2023 +0200

    [MSHARED-1283] Upgrade to Maven Reporting API 4.0.0-M7/Maven Reporting Impl 4.0.0-M9
    
    Also upgrade to Doxia Sitetools 2.0.0-M11 in tests
    
    This closes #18
---
 pom.xml                                                               | 4 ++--
 src/it/reportConfig/pom.xml                                           | 2 +-
 .../java/org/apache/maven/reporting/exec/MavenReportExecution.java    | 4 +++-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 49edfd2..f25af9b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,7 +69,7 @@
     <dependency>
       <groupId>org.apache.maven.reporting</groupId>
       <artifactId>maven-reporting-api</artifactId>
-      <version>4.0.0-M6</version>
+      <version>4.0.0-M7</version>
     </dependency>
 
     <!-- Maven -->
@@ -203,7 +203,7 @@
     <dependency>
       <groupId>org.apache.maven.doxia</groupId>
       <artifactId>doxia-site-renderer</artifactId>
-      <version>2.0.0-M10</version>
+      <version>2.0.0-M11</version>
       <scope>test</scope>
     </dependency>
 
diff --git a/src/it/reportConfig/pom.xml b/src/it/reportConfig/pom.xml
index 0dfecb1..8c19481 100644
--- a/src/it/reportConfig/pom.xml
+++ b/src/it/reportConfig/pom.xml
@@ -42,7 +42,7 @@ under the License.
     <dependency>
       <groupId>org.apache.maven.reporting</groupId>
       <artifactId>maven-reporting-impl</artifactId>
-      <version>4.0.0-M8</version>
+      <version>4.0.0-M9</version>
     </dependency>
   </dependencies>
 
diff --git a/src/main/java/org/apache/maven/reporting/exec/MavenReportExecution.java b/src/main/java/org/apache/maven/reporting/exec/MavenReportExecution.java
index 77a77da..a4f4468 100644
--- a/src/main/java/org/apache/maven/reporting/exec/MavenReportExecution.java
+++ b/src/main/java/org/apache/maven/reporting/exec/MavenReportExecution.java
@@ -20,6 +20,7 @@ package org.apache.maven.reporting.exec;
 
 import org.apache.maven.model.Plugin;
 import org.apache.maven.reporting.MavenReport;
+import org.apache.maven.reporting.MavenReportException;
 
 /**
  * <p>
@@ -70,8 +71,9 @@ public class MavenReportExecution {
     /**
      * execute Maven Report's <code>canGenerate()</code> with adequate classloader.
      * @return Maven Report's <code>canGenerate()</code> result
+     * @throws MavenReportException if any
      */
-    public boolean canGenerateReport() {
+    public boolean canGenerateReport() throws MavenReportException {
         ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader();
         try {
             if (classLoader != null) {