I am using the same version of Maven and Java. Does your reactor order match 
mine?

[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Log4j 2 ..................................... SUCCESS [  1.532 s]
[INFO] Apache Log4j API Java 9 support .................... SUCCESS [  4.568 s]
[INFO] Apache Log4j API ................................... SUCCESS [ 12.819 s]
[INFO] Apache Log4j Core .................................. SUCCESS [11:41 min]
[INFO] Apache Log4j Core Integration Tests ................ SUCCESS [ 29.895 s]
[INFO] Apache Log4j 1.x Compatibility API ................. SUCCESS [  8.075 s]
[INFO] Apache Log4j SLF4J Binding ......................... SUCCESS [  4.417 s]
[INFO] Apache Log4j to SLF4J Adapter ...................... SUCCESS [  2.814 s]
[INFO] Apache Log4j Commons Logging Bridge ................ SUCCESS [  3.076 s]
[INFO] Apache Log4j Flume Bridge .......................... SUCCESS [ 13.619 s]
[INFO] Apache Log4j Web ................................... SUCCESS [  4.971 s]
[INFO] Apache Log4j Tag Library ........................... SUCCESS [ 13.557 s]
[INFO] Apache Log4j JMX GUI ............................... SUCCESS [  1.093 s]
[INFO] Apache Log4j Samples ............................... SUCCESS [  0.407 s]
[INFO] Apache Log4j Samples: Flume - Common ............... SUCCESS [  1.568 s]
[INFO] Apache Log4j Samples: Flume - Remote ............... SUCCESS [  1.476 s]
[INFO] Apache Log4j Samples: Flume - Embedded ............. SUCCESS [  3.235 s]
[INFO] Apache Log4j Samples: Configuration ................ SUCCESS [  2.332 s]
[INFO] Apache Log4j Samples: LoggerProperties ............. SUCCESS [  2.619 s]
[INFO] Apache Log4j OSGi .................................. SUCCESS [  4.144 s]
[INFO] Apache Log4j BOM ................................... SUCCESS [  0.664 s]
[INFO] Apache Log4j CouchDB ............................... SUCCESS [  1.101 s]
[INFO] Apache Log4j MongoDB ............................... SUCCESS [  2.373 s]
[INFO] Apache Log4j Cassandra ............................. SUCCESS [ 17.109 s]
[INFO] Apache Log4J Performance Tests ..................... SUCCESS [ 33.243 s]
[INFO] Apache Log4j Streaming Interface ................... SUCCESS [  7.877 s]
[INFO] Apache Log4j JUL Adapter ........................... SUCCESS [  8.930 s]
[INFO] Apache Log4j Liquibase Binding ..................... SUCCESS [  2.413 s]
[INFO] Apache Log4j App Server Support .................... SUCCESS [  1.101 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

Ralph


> On Dec 23, 2017, at 8:37 AM, Mikael Ståldal <[email protected]> wrote:
> 
> 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
> 
> 

Reply via email to