@@ -126,6 +126,7 @@ under the License.
126126 <properties >
127127 <javaVersion >8</javaVersion >
128128 <version .sisu-maven-plugin>0.9.0.M3</version .sisu-maven-plugin>
129+ <asmVersion >9.8</asmVersion >
129130 <classWorldsVersion >2.9.0</classWorldsVersion >
130131 <commonsCliVersion >1.9.0</commonsCliVersion >
131132 <commonsIoVersion >2.19.0</commonsIoVersion >
@@ -240,6 +241,7 @@ under the License.
240241 <groupId >com.google.inject</groupId >
241242 <artifactId >guice</artifactId >
242243 <version >${guiceVersion} </version >
244+ <classifier >classes</classifier >
243245 <exclusions >
244246 <exclusion >
245247 <groupId >com.google.guava</groupId >
@@ -295,12 +297,23 @@ under the License.
295297 <groupId >javax.enterprise</groupId >
296298 <artifactId >cdi-api</artifactId >
297299 </exclusion >
300+ <exclusion >
301+ <groupId >org.eclipse.sisu</groupId >
302+ <artifactId >org.eclipse.sisu.inject</artifactId >
303+ </exclusion >
298304 </exclusions >
299305 </dependency >
300306 <dependency >
301307 <groupId >org.eclipse.sisu</groupId >
302308 <artifactId >org.eclipse.sisu.inject</artifactId >
303309 <version >${version.sisu-maven-plugin} </version >
310+ <classifier >no_asm</classifier >
311+ </dependency >
312+ <dependency >
313+ <groupId >org.ow2.asm</groupId >
314+ <artifactId >asm</artifactId >
315+ <version >${asmVersion} </version >
316+ <scope >runtime</scope >
304317 </dependency >
305318 <dependency >
306319 <groupId >javax.inject</groupId >
@@ -691,7 +704,7 @@ under the License.
691704 <artifactId >maven-enforcer-plugin</artifactId >
692705 <executions >
693706 <execution >
694- <id >ensure-no-sonatype-cipher-and-sec-dispatcher </id >
707+ <id >ensure-no-banned-dependencies </id >
695708 <goals >
696709 <goal >enforce</goal >
697710 </goals >
@@ -702,8 +715,13 @@ under the License.
702715 <excludes >
703716 <exclude >org.sonatype.plexus:plexus-sec-dispatcher</exclude >
704717 <exclude >org.sonatype.plexus:plexus-cipher</exclude >
718+ <exclude >org.eclipse.sisu:org.eclipse.sisu.inject</exclude >
719+ <exclude >com.google.inject:guice</exclude >
705720 </excludes >
706- <message >ensure no more org.sonatype.plexus:plexus-cipher and org.sonatype.plexus:plexus-sec-dispatcher.</message >
721+ <includes >
722+ <include >org.eclipse.sisu:org.eclipse.sisu.inject:*:*:*:no_asm</include >
723+ <include >com.google.inject:guice:*:*:*:classes</include >
724+ </includes >
707725 </bannedDependencies >
708726 </rules >
709727 <fail >true</fail >
0 commit comments