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 2022/07/02 21:53:00 UTC

[maven-reporting-impl] branch render-with-skins updated: Make skin selectable

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

michaelo pushed a commit to branch render-with-skins
in repository https://gitbox.apache.org/repos/asf/maven-reporting-impl.git


The following commit(s) were added to refs/heads/render-with-skins by this push:
     new 8f838c8  Make skin selectable
8f838c8 is described below

commit 8f838c8a85857a67e7112c56900a1babd7373c24
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sat Jul 2 23:52:49 2022 +0200

    Make skin selectable
---
 .../org/apache/maven/reporting/AbstractMavenReport.java    | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java b/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
index 2451d74..9c69963 100644
--- a/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
+++ b/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java
@@ -110,6 +110,9 @@ public abstract class AbstractMavenReport
     @Parameter( defaultValue = "${project.remoteArtifactRepositories}", readonly = true )
     protected List<ArtifactRepository> remoteRepositories;
 
+    @Parameter
+    Skin skin;
+
     /**
      * SiteTool.
      */
@@ -193,10 +196,13 @@ public abstract class AbstractMavenReport
         throws MavenReportException, IOException
         {
             DecorationModel decorationModel = new DecorationModel();
-            Skin skin = new Skin();
-            skin.setGroupId( "org.apache.maven.skins" );
-            skin.setArtifactId( "maven-fluido-skin" );
-            skin.setVersion( "1.11.1" );
+            if ( skin == null )
+            {
+                skin = new Skin();
+                skin.setGroupId( "org.apache.maven.skins" );
+                skin.setArtifactId( "maven-fluido-skin" );
+                skin.setVersion( "1.11.1" );
+            }
             decorationModel.setSkin( skin );
 
             Map<String, Object> templateProperties = new HashMap<>();