You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2024/03/16 08:33:00 UTC
[jira] [Commented] (MSHARED-1364) AbstractMavenReportRenderer should not depend on Doxia impl classes
[ https://issues.apache.org/jira/browse/MSHARED-1364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827671#comment-17827671 ]
Michael Osipov commented on MSHARED-1364:
-----------------------------------------
What do you recommend to do in such a case? Where should this class ({{SinkEventAttributeSet}}) be?
> AbstractMavenReportRenderer should not depend on Doxia impl classes
> -------------------------------------------------------------------
>
> Key: MSHARED-1364
> URL: https://issues.apache.org/jira/browse/MSHARED-1364
> Project: Maven Shared Components
> Issue Type: Improvement
> Components: maven-reporting-impl
> Affects Versions: maven-reporting-impl-4.0.0-M13
> Reporter: Konrad Windszus
> Priority: Major
>
> The classes in package {{o.a.m.doxia.sink.impl}} should by definition not be considered stable API (and therefore only consumed from Doxia classes internally).
> However {{https://github.com/apache/maven-reporting-impl/blob/72181306bb0e12eed50c4ba4aec98dd76499df39/src/main/java/org/apache/maven/reporting/AbstractMavenReportRenderer.java#L47}} depends on some internal constants.
> This is dangerous, as those constants were removed in the context of DOXIA-685. Although constants are inlined during compile time, the evaluation of those constants vanished as well, so using them has no longer any effect. Reporting Impl should only rely on stable Doxia API to achieve a better decoupling.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)