[ https://issues.apache.org/jira/browse/MENFORCER-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038637#comment-16038637 ]
Joerg Schaible commented on MENFORCER-270: ------------------------------------------ You already have this. The release plugin activates a profile (by default "release", but that can be configured) when it runs a release build. So simply configure this enforcer rule in that special profile. > option to forbid plugin snapshot versions only when releasing > ------------------------------------------------------------- > > Key: MENFORCER-270 > URL: https://issues.apache.org/jira/browse/MENFORCER-270 > Project: Maven Enforcer Plugin > Issue Type: Improvement > Components: Standard Rules > Affects Versions: 1.4.1 > Reporter: Gruust > Priority: Minor > > Basically, it would be nice if plugin versions would be treated similar to > regular dependencies, ie. have a standard rule that only complains about > snapshot plugin versions when trying to release the project. That's > especially helpful when having maven plugin sub-modules as part of a larger > multi-module project. -- This message was sent by Atlassian JIRA (v6.3.15#6346)