[
https://issues.apache.org/jira/browse/MPLUGIN-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17768423#comment-17768423
]
ASF GitHub Bot commented on MPLUGIN-442:
----------------------------------------
kwin commented on code in PR #225:
URL:
https://github.com/apache/maven-plugin-tools/pull/225#discussion_r1335220016
##########
maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java:
##########
@@ -137,4 +145,50 @@ public int compare(Parameter parameter1, Parameter
parameter2) {
});
}
}
+
+ /**
+ * @param mojoClassName a fully qualified Mojo implementation class name,
not null
+ * @param project a MavenProject instance, could be null
+ * @return <code>true</code> if the Mojo class implements
<code>MavenReport</code>,
+ * <code>false</code> otherwise.
+ * @throws IllegalArgumentException if any
+ * @since 3.10.0
+ */
+ public static boolean isMavenReport(String mojoClassName, MavenProject
project) throws IllegalArgumentException {
+ if (mojoClassName == null) {
+ throw new IllegalArgumentException("mojo implementation should be
declared");
+ }
Review Comment:
TBH the code was just moved from `GeneratorUtils` in
maven-plugin-tools-generator in order to reduce dependencies. Let us improve
the code in a separate commit/PR.
> Get rid of deprecated XDoc format
> ---------------------------------
>
> Key: MPLUGIN-442
> URL: https://issues.apache.org/jira/browse/MPLUGIN-442
> Project: Maven Plugin Tools
> Issue Type: Bug
> Components: Plugin Plugin
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Major
>
> At some time in the future m-site-p/doxia will no longer support XDoc
> (compare with
> https://issues.apache.org/jira/browse/DOXIA-569?focusedCommentId=17634481&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17634481).
> Therefore the "report" goal should be converted to create "markdown" for the
> plugin goal documentation pages instead of "XDoc" in
> https://github.com/apache/maven-plugin-tools/blob/master/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)