Fixing 'enforce-orbit-deps' enforcer rules to actually work + allow provided scope

This commit is contained in:
Joakim Erdfelt 2012-09-20 12:04:41 -07:00
parent 857498b115
commit f275a045c3
1 changed files with 10 additions and 4 deletions

14
pom.xml
View File

@ -146,11 +146,17 @@
<rules>
<!-- Banned Dependencies (should use Orbit based versions now) -->
<bannedDependencies>
<excludes>
<exclude>javax.servlet</exclude>
<exclude>javax.servlet.jsp</exclude>
<exclude>org.apache.geronimo.specs</exclude>
<exclude>javax.mail</exclude>
<exclude>javax.activation</exclude>
</excludes>
<!-- allowed combinations -->
<includes>
<include>javax.servlet</include>
<include>org.apache.geronimo.specs</include>
<include>javax.mail</include>
<include>javax.activation</include>
<include>javax.servlet:*:*:*:provided</include>
<include>javax.servlet.jsp:*:*:*:provided</include>
</includes>
<searchTransitive>true</searchTransitive>
<message>This dependency is banned, use the ORBIT provided dependency instead.</message>