Remove capability mumbo jumbo. - Using a lock in log4j-api (ProviderUtil) has prevented the need for this hack in OSGi.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/aba5c6bb Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/aba5c6bb Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/aba5c6bb Branch: refs/heads/master Commit: aba5c6bbbea2e422890964cb1f9f1f2003bd9c3b Parents: c79d276 Author: Matt Sicker <mattsic...@apache.org> Authored: Fri Sep 5 12:13:36 2014 -0500 Committer: Matt Sicker <mattsic...@apache.org> Committed: Fri Sep 5 12:13:36 2014 -0500 ---------------------------------------------------------------------- log4j-api/pom.xml | 1 - log4j-core/pom.xml | 1 - log4j-to-slf4j/pom.xml | 1 - 3 files changed, 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/aba5c6bb/log4j-api/pom.xml ---------------------------------------------------------------------- diff --git a/log4j-api/pom.xml b/log4j-api/pom.xml index b087545..e08c82b 100644 --- a/log4j-api/pom.xml +++ b/log4j-api/pom.xml @@ -113,7 +113,6 @@ * </Import-Package> <Bundle-Activator>org.apache.logging.log4j.util.Activator</Bundle-Activator> - <Require-Capability>org.apache.logging.log4j.spi.LoggerContextFactory</Require-Capability> </instructions> </configuration> </plugin> http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/aba5c6bb/log4j-core/pom.xml ---------------------------------------------------------------------- diff --git a/log4j-core/pom.xml b/log4j-core/pom.xml index 1157c45..056d690 100644 --- a/log4j-core/pom.xml +++ b/log4j-core/pom.xml @@ -290,7 +290,6 @@ * </Import-Package> <Bundle-Activator>org.apache.logging.log4j.core.osgi.Activator</Bundle-Activator> - <Provide-Capability>org.apache.logging.log4j.spi.LoggerContextFactory</Provide-Capability> </instructions> </configuration> </plugin> http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/aba5c6bb/log4j-to-slf4j/pom.xml ---------------------------------------------------------------------- diff --git a/log4j-to-slf4j/pom.xml b/log4j-to-slf4j/pom.xml index 656c2d0..128a6d8 100644 --- a/log4j-to-slf4j/pom.xml +++ b/log4j-to-slf4j/pom.xml @@ -86,7 +86,6 @@ <configuration> <instructions> <Export-Package>org.apache.logging.slf4j</Export-Package> - <Provide-Capability>org.apache.logging.log4j.spi.LoggerContextFactory</Provide-Capability> </instructions> </configuration> </plugin>