| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one or more |
| ~ contributor license agreements. See the NOTICE file distributed with |
| ~ this work for additional information regarding copyright ownership. |
| ~ The ASF licenses this file to you under the Apache License, Version 2.0 |
| ~ (the "License"); you may not use this file except in compliance with |
| ~ the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <version>${revision}</version> |
| <relativePath>../log4j-parent</relativePath> |
| </parent> |
| <artifactId>log4j-api-test</artifactId> |
| <packaging>jar</packaging> |
| <name>Apache Log4j API Tests</name> |
| <description>The Apache Log4j API Test</description> |
| <properties> |
| <!-- Ignore less important (high rank) bugs for test artifacts --> |
| <spotbugs.maxRank>9</spotbugs.maxRank> |
| |
| <!-- |
| ~ OSGi and JPMS options |
| --> |
| <bnd-module-name>org.apache.logging.log4j.test</bnd-module-name> |
| <bnd-extra-package-options> |
| org.apache.commons.lang3.*;resolution:=optional, |
| org.assertj.*;resolution:=optional, |
| <!-- Both JUnit 4 and JUnit 5 are not required --> |
| org.junit.*;resolution:=optional, |
| org.hamcrest.*;resolution:=optional, |
| org.junitpioneer.*;resolution:=optional, |
| org.apache.maven.*;resolution:=optional, |
| org.codehaus.plexus.util.*;resolution:=optional, |
| org.mockito.*;resolution:=optional |
| </bnd-extra-package-options> |
| <bnd-extra-module-options> |
| <!-- Non-transitive static modules --> |
| junit;transitive=false, |
| org.assertj.core;transitive=false, |
| org.hamcrest;transitive=false, |
| org.junit.jupiter.api;transitive=false, |
| org.junitpioneer;transitive=false, |
| <!-- Filebased module names: MUST be static --> |
| maven.core;substitute="maven-core";transitive=false;static=true, |
| maven.model;substitute="maven-model";transitive=false;static=true, |
| maven.model.builder;substitute="maven-model-builder";transitive=false;static=true, |
| plexus.utils;substitute="plexus-utils";transitive=false;static=true |
| </bnd-extra-module-options> |
| </properties> |
| <!-- |
| ~ The dependency list has been checked with: |
| ~ |
| ~ ./mvnw dependency:analyze -pl log4j-api-test |
| ~ |
| ~ False positives: |
| ~ org.junit.platform:junit-platform-engine |
| ~ It is used in StackLocatorUtilTest through a Class.forName |
| --> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.assertj</groupId> |
| <artifactId>assertj-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.junit-pioneer</groupId> |
| <artifactId>junit-pioneer</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.platform</groupId> |
| <artifactId>junit-platform-commons</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-model</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.plexus</groupId> |
| <artifactId>plexus-utils</artifactId> |
| </dependency> |
| <!-- Required for JSON support --> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- Required for JSON support --> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-engine</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-params</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-inline</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- Used by ServiceLoaderUtilTest --> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>uk.org.webcompere</groupId> |
| <artifactId>system-stubs-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>uk.org.webcompere</groupId> |
| <artifactId>system-stubs-jupiter</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <excludedGroups>performance,smoke</excludedGroups> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| </project> |