I just tried with latest master. No errors in log4j-api, but in log4j-osgi:
$ mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T17:41:47+01:00)
Maven home: /opt/apache-maven-3.3.9
Java version: 1.8.0_144, vendor: Oracle Corporation
Java home: /opt/jvm/jdk1.8.0_144/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.10.0-42-generic", arch: "amd64", family:
"unix"
$ mvn clean install
[ERROR] Tests run: 5, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
2.051 s <<< FAILURE! - in
org.apache.logging.log4j.osgi.tests.felix.FelixLoadApiBundleTest
[ERROR]
testMissingImportOfCoreOsgiPackage(org.apache.logging.log4j.osgi.tests.felix.FelixLoadApiBundleTest)
Time elapsed: 0.408 s <<< ERROR!
org.osgi.framework.BundleException: Unable to cache bundle:
file:///home/mikes/programproject/logging-log4j2/log4j-samples/configuration/target/log4j-samples-configuration-2.10.1-SNAPSHOT.jar
Caused by: java.io.FileNotFoundException:
/home/mikes/programproject/logging-log4j2/log4j-samples/configuration/target/log4j-samples-configuration-2.10.1-SNAPSHOT.jar
(No such file or directory)
[ERROR]
testSimpleLogInAnOsgiContext(org.apache.logging.log4j.osgi.tests.felix.FelixLoadApiBundleTest)
Time elapsed: 0.063 s <<< ERROR!
org.osgi.framework.BundleException: Unable to cache bundle:
file:///home/mikes/programproject/logging-log4j2/log4j-samples/configuration/target/log4j-samples-configuration-2.10.1-SNAPSHOT.jar
Caused by: java.io.FileNotFoundException:
/home/mikes/programproject/logging-log4j2/log4j-samples/configuration/target/log4j-samples-configuration-2.10.1-SNAPSHOT.jar
(No such file or directory)
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This
will impact performance.
ERROR StatusLogger No log4j2 configuration file found. Using default
configuration: logging only errors to the console. Set system property
'log4j2.debug' to show Log4j2 internal initialization logging.
[ERROR] Tests run: 5, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
2.095 s <<< FAILURE! - in
org.apache.logging.log4j.osgi.tests.equinox.EquinoxLoadApiBundleTest
[ERROR]
testMissingImportOfCoreOsgiPackage(org.apache.logging.log4j.osgi.tests.equinox.EquinoxLoadApiBundleTest)
Time elapsed: 0.635 s <<< ERROR!
org.osgi.framework.BundleException: Error reading bundle content.
Caused by: java.io.FileNotFoundException:
/home/mikes/programproject/logging-log4j2/log4j-samples/configuration/target/log4j-samples-configuration-2.10.1-SNAPSHOT.jar
(No such file or directory)
[ERROR]
testSimpleLogInAnOsgiContext(org.apache.logging.log4j.osgi.tests.equinox.EquinoxLoadApiBundleTest)
Time elapsed: 0.037 s <<< ERROR!
org.osgi.framework.BundleException: Error reading bundle content.
Caused by: java.io.FileNotFoundException:
/home/mikes/programproject/logging-log4j2/log4j-samples/configuration/target/log4j-samples-configuration-2.10.1-SNAPSHOT.jar
(No such file or directory)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]
EquinoxLoadApiBundleTest>AbstractLoadBundleTest.testMissingImportOfCoreOsgiPackage:239->AbstractLoadBundleTest.getDummyBundle:81
» Bundle
[ERROR]
EquinoxLoadApiBundleTest>AbstractLoadBundleTest.testSimpleLogInAnOsgiContext:269->AbstractLoadBundleTest.getDummyBundle:81
» Bundle
[ERROR]
FelixLoadApiBundleTest>AbstractLoadBundleTest.testMissingImportOfCoreOsgiPackage:239->AbstractLoadBundleTest.getDummyBundle:81
» Bundle
[ERROR]
FelixLoadApiBundleTest>AbstractLoadBundleTest.testSimpleLogInAnOsgiContext:269->AbstractLoadBundleTest.getDummyBundle:81
» Bundle
[INFO]
[ERROR] Tests run: 10, Failures: 0, Errors: 4, Skipped: 0