[ 
http://jira.codehaus.org/browse/MENFORCER-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Fox updated MENFORCER-43:
-------------------------------

    Fix Version/s: 1.0

> RequireReleaseDeps - allow to execute "onlyWhenRelease"
> -------------------------------------------------------
>
>                 Key: MENFORCER-43
>                 URL: http://jira.codehaus.org/browse/MENFORCER-43
>             Project: Maven 2.x Enforcer Plugin
>          Issue Type: Improvement
>          Components: Standard Rules
>    Affects Versions: 1.0-alpha-3
>            Reporter: Jacob Robertson
>            Assignee: Brian Fox
>            Priority: Minor
>             Fix For: 1.0
>
>         Attachments: onlyWhenRelease.patch.txt
>
>
> When I setup a project to use the enforcer plugin, I would like to setup the 
> requireReleaseDeps rule.  However, while I am in "snapshot" mode with my 
> project, I'm not that concerned about whether that project depends on 
> snapshots.  For example, I may have a small suite of projects which are being 
> developed at the same time.  They may also share a common parent.  (Just like 
> the maven enforcer projects do)  Especially in the case where I place the 
> maven enforcer plugin configuration in that parent pom, it wouldn't make 
> sense for me to have to "comment out" the requireReleaseDeps rule during my 
> snapshot development, only to have to switch it back at release time.  
> Rather, what I want to express is "enforce the requireReleaseDeps rule, but 
> only when I'm a release".
> The pom snippet would look like
> {code}
> <requireReleaseDeps>
>       <onlyWhenRelease>true</onlyWhenRelease>
>       <searchTransitive>true</searchTransitive>
> </requireReleaseDeps>
> {code}
> I have attached a patch that shows what I'm thinking, and the updated test 
> case to show that it works as expected.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to