[ 
https://issues.apache.org/jira/browse/SLING-11927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17739968#comment-17739968
 ] 

Konrad Windszus commented on SLING-11927:
-----------------------------------------

API has been clarified in 
https://maven.apache.org/enforcer/enforcer-api/writing-a-custom-rule.html#project-with-custom-enforcer-rule

{quote}The classes available from enforcer-rules must not be used from custom 
rules, as those are not considered API and may change in backwards-incompatible 
ways with every maven-enforcer version (even minor ones).{quote}

> Sling's maven-enforcer-rules incompatible with maven-enforcer-plugin 3.2.0 
> and above
> ------------------------------------------------------------------------------------
>
>                 Key: SLING-11927
>                 URL: https://issues.apache.org/jira/browse/SLING-11927
>             Project: Sling
>          Issue Type: Improvement
>          Components: Maven Plugins and Archetypes
>    Affects Versions: Maven Enforcer Rules 1.1.0
>            Reporter: Konrad Windszus
>            Priority: Major
>             Fix For: Maven Enforcer Rules 1.2.0
>
>
> The following error is exposed
> {code}
> Execution xxx of goal 
> org.apache.maven.plugins:maven-enforcer-plugin:3.3.0:enforce failed: A 
> required class was missing while executing 
> org.apache.maven.plugins:maven-enforcer-plugin:3.3.0:enforce: 
> org/apache/maven/plugins/enforcer/AbstractNonCacheableEnforcerRule
> {code}
> This is due to the fact that the class has been removed in 
> https://github.com/apache/maven-enforcer/commit/26697b16741b0e3b488ec322eb2fc0dc2a8da9ed
>  but is still used as parent of 
> https://github.com/apache/sling-maven-enforcer-rules/blob/327aefefda555798337f7a6ff9e182edc277dc74/src/main/java/org/apache/sling/maven/enforcer/RequireProvidedDependenciesInRuntimeClasspath.java#L80



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to