diff --git a/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/AbstractCloverMojo.java b/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/AbstractCloverMojo.java index 83e0e4d38d..f42ba43016 100644 --- a/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/AbstractCloverMojo.java +++ b/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/AbstractCloverMojo.java @@ -22,7 +22,7 @@ import org.apache.tools.ant.taskdefs.Taskdef; public abstract class AbstractCloverMojo extends AbstractMojo { /** - * @parameter expression="" + * @parameter */ private String licenseFile; @@ -35,6 +35,7 @@ public abstract class AbstractCloverMojo extends AbstractMojo protected void registerLicenseFile() { String licenseToUse = this.licenseFile; + if (licenseToUse == null) { licenseToUse = getClass().getResource("/clover.license").getFile();