Skip to content

Commit ce35cbe

Browse files
committed
Prevent maven plugins from using log4j:log4j
1 parent e772728 commit ce35cbe

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

pom.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,34 @@
845845
<groupId>org.apache.maven.plugins</groupId>
846846
<artifactId>maven-dependency-plugin</artifactId>
847847
<version>${version.maven-dependency-plugin}</version>
848+
<dependencies>
849+
<dependency>
850+
<groupId>org.apache.logging.log4j</groupId>
851+
<artifactId>log4j-1.2-api</artifactId>
852+
<version>${version.log4j2}</version>
853+
</dependency>
854+
<dependency>
855+
<groupId>org.apache.logging.log4j</groupId>
856+
<artifactId>log4j-core</artifactId>
857+
<version>${version.log4j2}</version>
858+
</dependency>
859+
<dependency>
860+
<groupId>org.apache.commons</groupId>
861+
<artifactId>commons-lang3</artifactId>
862+
<version>${version.commons-lang3}</version>
863+
</dependency>
864+
<dependency>
865+
<groupId>org.apache.maven.doxia</groupId>
866+
<artifactId>doxia-site-renderer</artifactId>
867+
<version>1.4</version>
868+
<exclusions>
869+
<exclusion>
870+
<groupId>log4j</groupId>
871+
<artifactId>log4j</artifactId>
872+
</exclusion>
873+
</exclusions>
874+
</dependency>
875+
</dependencies>
848876
</plugin>
849877
<plugin>
850878
<groupId>org.apache.maven.plugins</groupId>
@@ -969,6 +997,29 @@
969997
<threshold>Medium</threshold>
970998
<xmlOutput>true</xmlOutput>
971999
</configuration>
1000+
<dependencies>
1001+
<dependency>
1002+
<groupId>org.apache.logging.log4j</groupId>
1003+
<artifactId>log4j-1.2-api</artifactId>
1004+
<version>${version.log4j2}</version>
1005+
</dependency>
1006+
<dependency>
1007+
<groupId>org.apache.logging.log4j</groupId>
1008+
<artifactId>log4j-core</artifactId>
1009+
<version>${version.log4j2}</version>
1010+
</dependency>
1011+
<dependency>
1012+
<groupId>org.apache.maven.reporting</groupId>
1013+
<artifactId>maven-reporting-impl</artifactId>
1014+
<version>3.0.0</version>
1015+
<exclusions>
1016+
<exclusion>
1017+
<groupId>log4j</groupId>
1018+
<artifactId>log4j</artifactId>
1019+
</exclusion>
1020+
</exclusions>
1021+
</dependency>
1022+
</dependencies>
9721023
</plugin>
9731024
<plugin>
9741025
<groupId>org.jacoco</groupId>

0 commit comments

Comments
 (0)