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
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
Dirk Mahler
Senior Consultant IT
buschmais GbR
-----------------------------------------------------------------
Inhaber Torsten Busch, Frank Schwarz, Dirk Mahler, Tobias Israel
Adresse buschmais GbR, Leipziger Straße 93, 01127 Dresden
Telefon +49 (0) 351 3209 23-0
Fax +49 (0) 351 3209 23-29
Mobil +49 (0) 177 3137411
E-Mail dirk.mah...@buschmais.com
Internet http://www.buschmais.de
-----------------------------------------------------------------
Diese E-Mail enthält vertrauliche undoder rechtlich geschützte
Informationen. Wenn Sie diese E-Mail irrtümlich erhalten haben,
bitten wir Sie diese E-Mail umgehend zu löschen. Das unerlaubte
Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht
gestattet.
This e-mail may contain confidential or privileged information. If
you are not the intended recipient we kindly request you to delete
this e-mail immediately. Any unauthorized copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.