maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl-Heinz Marbaise (JIRA)" <j...@codehaus.org>
Subject [jira] (MENFORCER-211) wildcard ignore in requireReleaseDeps
Date Sat, 29 Nov 2014 12:37:10 GMT

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

Karl-Heinz Marbaise updated MENFORCER-211:
------------------------------------------

    Fix Version/s: waiting-for-feedback

> wildcard ignore in requireReleaseDeps
> -------------------------------------
>
>                 Key: MENFORCER-211
>                 URL: https://jira.codehaus.org/browse/MENFORCER-211
>             Project: Maven Enforcer Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.3.1
>            Reporter: Arne Brix
>            Priority: Minor
>             Fix For: waiting-for-feedback
>
>
> the bannedDependencies rule allows one to specify artifact lists using wildcards:
> {code:xml}
> org.apache.*:maven-*:*
> {code}
> we are using the requireReleaseDeps rule for our release builds.
> We would like to exclude dependencies with scope test because they don't contribute to
the final artifact.
> We tried the syntax documented for bannedDependencies, but it didn't work:
> {code:xml}
>               <configuration>
>                 <rules>
>                   <requireReleaseDeps>
>                     <message>No Snapshots Allowed!</message>
>                     <onlyWhenRelease>true</onlyWhenRelease>
>                     <excludes>
>                       <exclude>*:*:*:*:test</exclude>
>                     </excludes>
>                   </requireReleaseDeps>
>                 </rules>
>                 <fail>true</fail>
>               </configuration>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message