[MENFORCER-389] Exclusions are not considered when looking at parent for requireReleaseDeps (original) (raw)

I would like to prevent parent poms to be a snapshots. But I have a multi-module project. The rule is this on the parent pom:

No Snapshots Allowed! ${project.groupId}:* true

I would expect this to fail only when the parent pom is not in my groupId. But it's not what it does. It just makes failWhenParentIsSnapshot unusable for multi-module projects.

See https://github.com/henri-tremblay/enforce-parent-bug for a full project to reproduce. Just type mvn enforcer:enforce