Skip to content

Instantly share code, notes, and snippets.

@cgruber
Last active September 11, 2017 12:08
Show Gist options
  • Save cgruber/1ee25ba25f9e71da5cd0 to your computer and use it in GitHub Desktop.
Save cgruber/1ee25ba25f9e71da5cd0 to your computer and use it in GitHub Desktop.

Revisions

  1. cgruber revised this gist Dec 6, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions pom.xml
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    <!-- Avoid the M.A.D. Gadget vulnerability in certain apache commons-collections versions -->
    <project>
    <!-- ... -->
    <build>
  2. cgruber revised this gist Dec 6, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion pom.xml
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,8 @@
    <rules>
    <bannedDependencies>
    <excludes>
    <exclude>commons-collections:commons-collections:[3.2.1]</exclude>
    <exclude>commons-collections:commons-collections:[3.0,3.2.1]</exclude>
    <exclude>commons-collections:commons-collections:4.0</exclude>
    </excludes>
    </bannedDependencies>
    </rules>
  3. cgruber created this gist Mar 9, 2016.
    24 changes: 24 additions & 0 deletions pom.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    <project>
    <!-- ... -->
    <build>
    <plugins>
    <plugin>
    <artifactId>maven-enforcer-plugin</artifactId>
    <executions>
    <execution>
    <goals><goal>enforce</goal></goals>
    <configuration>
    <rules>
    <bannedDependencies>
    <excludes>
    <exclude>commons-collections:commons-collections:[3.2.1]</exclude>
    </excludes>
    </bannedDependencies>
    </rules>
    </configuration>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>
    </project>