You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/19 12:12:00 UTC
[jira] [Commented] (MENFORCER-211) wildcard ignore in
requireReleaseDeps
[ https://issues.apache.org/jira/browse/MENFORCER-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17000010#comment-17000010 ]
Elliotte Rusty Harold commented on MENFORCER-211:
-------------------------------------------------
seems useful
> wildcard ignore in requireReleaseDeps
> -------------------------------------
>
> Key: MENFORCER-211
> URL: https://issues.apache.org/jira/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
(v8.3.4#803005)