Exclude slfj4-log4j from testing classpath
Project: http://git-wip-us.apache.org/repos/asf/jena/repo Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/4ea54028 Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/4ea54028 Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/4ea54028 Branch: refs/heads/master Commit: 4ea5402866e81483cdc2e67419e413f8fefcf290 Parents: 537b4fc Author: Stian Soiland-Reyes <[email protected]> Authored: Tue Feb 10 12:57:42 2015 +0000 Committer: Stian Soiland-Reyes <[email protected]> Committed: Tue Feb 10 12:57:42 2015 +0000 ---------------------------------------------------------------------- apache-jena-osgi/jena-osgi-test/pom.xml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jena/blob/4ea54028/apache-jena-osgi/jena-osgi-test/pom.xml ---------------------------------------------------------------------- diff --git a/apache-jena-osgi/jena-osgi-test/pom.xml b/apache-jena-osgi/jena-osgi-test/pom.xml index d04c918..c0bc922 100644 --- a/apache-jena-osgi/jena-osgi-test/pom.xml +++ b/apache-jena-osgi/jena-osgi-test/pom.xml @@ -63,25 +63,14 @@ limitations under the License. </dependency> <!-- needed to get a org.slf4j bundle for PAX - NOTE: As we also inherit slf4j-log4j from jena-parent, we will get this - warning at startup: - -SLF4J: Class path contains multiple SLF4J bindings. -SLF4J: Found binding in [jar:file:/home/stain/.m2/repository/org/ops4j/pax/logging/pax-logging-api/1.8.1/pax-logging-api-1.8.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] -SLF4J: Found binding in [jar:file:/home/stain/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] -SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. -SLF4J: Actual binding is of type [org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory] - - As long as the actual binding is the org.ops4j binding, this can be ignored. - - --> + as we exclude slf4j-log4j due to + "Fragment bundle" warning --> <dependency> <groupId>org.ops4j.pax.logging</groupId> <artifactId>pax-logging-log4j2</artifactId> <version>${pax.logging.version}</version> <scope>test</scope> </dependency> - <dependency> <groupId>org.ops4j.pax.logging</groupId> <artifactId>pax-logging-api</artifactId> @@ -140,6 +129,9 @@ SLF4J: Actual binding is of type [org.ops4j.pax.logging.slf4j.Slf4jLoggerFactory <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> + <classpathDependencyExcludes> + <classpathDependencyExclude>org.slf4j:slf4j-log4j12</classpathDependencyExclude> + </classpathDependencyExcludes> <systemPropertyVariables> <!-- So the test can find the current version of jena-osgi --> <jena-osgi.version>${project.version}</jena-osgi.version>
