You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2022/06/02 07:07:00 UTC
[jira] [Commented] (MENFORCER-389) Exclusions are not considered when looking at parent for requireReleaseDeps
[ https://issues.apache.org/jira/browse/MENFORCER-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545297#comment-17545297 ]
Hudson commented on MENFORCER-389:
----------------------------------
Build failed in Jenkins: Maven » Maven TLP » maven-enforcer » master #33
See https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-enforcer/job/master/33/
> Exclusions are not considered when looking at parent for requireReleaseDeps
> ---------------------------------------------------------------------------
>
> Key: MENFORCER-389
> URL: https://issues.apache.org/jira/browse/MENFORCER-389
> Project: Maven Enforcer Plugin
> Issue Type: Bug
> Components: Standard Rules
> Affects Versions: 3.0.0
> Reporter: Henri Tremblay
> Assignee: Slawomir Jaranowski
> Priority: Blocker
> Fix For: 3.0.1
>
>
> 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:
> {code:java}
> <rules>
> <requireReleaseDeps>
> <message>No Snapshots Allowed!</message>
> <excludes>
> <exclude>${project.groupId}:*</exclude>
> </excludes>
> <failWhenParentIsSnapshot>true</failWhenParentIsSnapshot>
> </requireReleaseDeps>
> </rules>
> {code}
> 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}}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)