Hi Dirk,

On 3/16/16 9:03 PM, Dirk Mahler wrote:
Hi,

a project of mine (jQAssistant) provides Maven plugin which includes a
Mojo for creating reports for a Maven site:

@Mojo(name = "report", defaultPhase = LifecyclePhase.SITE)
public class ReportMojo extends AbstractMavenReport {

There seems to be a problem if the Maven plugin is declared as extension
(which sometimes is necessary to avoid classloading problems for a Neo4j
instance acting as singleton in the reactor):

<plugin>
   <groupId>com.buschmais.jqassistant.scm</groupId>
   <artifactId>jqassistant-maven-plugin</artifactId>
   <version>1.1.2</version>
   <extensions>true</extensions>
</plugin>

In this case the following warning is rendered:

   [WARNING] ignoring
com.buschmais.jqassistant.scm:jqassistant-maven-plugin:1.1.2:report goal
since it is not a report: should be removed from reporting configuration
in POM

Is you plugin configured in the reporting section as well as like above?

Kind regards
Karl Heinz Marbaise


This warning is issued by DefaultMavenReportExecutor after passing the
following line:

   boolean isMavenReport = MavenReport.class.isAssignableFrom( mojoClass );

Is there a way to get around that (Maven 3.3.9)?

Best regards from Dresden

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to