[slf4j-dev] [JIRA] Updates for SLF4J-541: log4j-over-slf4j MANIFEST.MF has corrupt Export-Package declaration

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Feb 8 09:37:00 CET 2022


SLF4J / SLF4J-541 [Open]
log4j-over-slf4j MANIFEST.MF has corrupt Export-Package declaration

==============================

Here's what changed in this issue in the last few minutes.

There is 1 comment.

View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-541

==============================
 1 comment
------------------------------

Flavio Donzé on 08/Feb/22 9:25 AM
The resulting _MANIFEST.MF_ in the _log4j-over-slf4j-1.7.36.jar_ looks good:
{code:java}
Export-Package: org.apache.log4j;version=1.2.18.5,org.apache.log4j.hel
 pers;version=1.2.18.5,org.apache.log4j.spi;version=1.2.18.5,org.apach
 e.log4j.xml;version=1.2.18.5
{code}
I get the following error during the build, but maybe I'm doing something wrong? (mvn clean verify):

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for SLF4J 1.7.36:
[INFO]
[INFO] SLF4J .............................................. SUCCESS [ 0.544 s]
[INFO] SLF4J API Module ................................... SUCCESS [ 5.273 s]
[INFO] SLF4J Simple Binding ............................... SUCCESS [ 1.952 s]
[INFO] SLF4J NOP Binding .................................. SUCCESS [ 1.111 s]
[INFO] SLF4J JDK14 Binding ................................ SUCCESS [ 1.646 s]
[INFO] SLF4J LOG4J-12 Binding relocated ................... SUCCESS [ 0.008 s]
[INFO] SLF4J Reload4j Binding ............................. SUCCESS [ 1.805 s]
[INFO] SLF4J JCL Binding .................................. SUCCESS [ 1.063 s]
[INFO] SLF4J Android Binding .............................. SUCCESS [ 1.022 s]
[INFO] SLF4J Extensions Module ............................ SUCCESS [ 2.813 s]
[INFO] JCL 1.2 implemented over SLF4J ..................... SUCCESS [ 1.365 s]
[INFO] Log4j Implemented Over SLF4J ....................... SUCCESS [ 1.200 s]
[INFO] JUL to SLF4J bridge ................................ SUCCESS [ 1.178 s]
[INFO] OSGi LogService implemented over SLF4J ............. SUCCESS [ 0.261 s]
[INFO] SLF4J Integration tests ............................ FAILURE [ 5.612 s]
[INFO] SLF4J Site ......................................... SKIPPED
[INFO] SLF4J Migrator ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.231 s
[INFO] Finished at: 2022-02-08T09:21:30+01:00
[INFO] ------------------------------------------------------------------------
*[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.2:run (ant-osgi-test) on project integration: An Ant BuildException has occured: The following error occurred while executing this line:*
*[ERROR] D:\temp\log\slf4j\integration\osgi-build.xml:67: Test org.slf4j.test_osgi.BundleTest failed*
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :integration

 


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the slf4j-dev mailing list