[ https://issues.apache.org/jira/browse/MENFORCER-386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17678580#comment-17678580 ]
Slawomir Jaranowski commented on MENFORCER-386: ----------------------------------------------- Cache means that rule will be not executed again in the same Maven session for multi module projects. It make sense for rules like {{requireJavaVersion}} - the Java version is the same in all modules. But for rules which check somethings in project, like {{requireEncoding}} we must execute rule in each module, each modules have own files. By the way rule {{requireEncoding}} is form external project and issue should be reported in source project: https://github.com/mojohaus/extra-enforcer-rules/issues > caching implementation > ---------------------- > > Key: MENFORCER-386 > URL: https://issues.apache.org/jira/browse/MENFORCER-386 > Project: Maven Enforcer Plugin > Issue Type: Bug > Affects Versions: 3.0.0-M3 > Reporter: Delany > Priority: Major > > The enforcer seems to cache results in a session but it does not persist them. > The log will always say > {noformat} > [INFO] Adding ignore: META-INF/versions/*/module-info > [INFO] Adding ignore: module-info{noformat} > whether I add -D{{enforcer.ignoreCache}} or not. And in any case I don't see > any module-info files being written. -- This message was sent by Atlassian Jira (v8.20.10#820010)