[
https://issues.apache.org/jira/browse/FELIX-4056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Klimetschek updated FELIX-4056:
-----------------------------------------
Attachment: felix4056-sampleproject.zip
Attaching minimum sample project:
- depending on slf4j-api 1.5.8 (or lower)
- one class with scr annotations (@Component + @Property required)
- class also imports and uses problematic slf4j Logger class
- using latest scr plugin 1.12.0 and bundle plugin 2.3.5 and scr annotations
1.9.0
But :-) while setting that up I found that slf4j starting with 1.6.0 fixed the
issue: http://www.slf4j.org/codes.html#StaticLoggerBinder
So not sure if this deserves fixing - only if for some reason someone cannot
upgrade to 1.6 (or the latest 1.7.5 at this time) of slf4j-api.
> scr plugin: a required class was missing for org.slf4j.impl.StaticLoggerBinder
> ------------------------------------------------------------------------------
>
> Key: FELIX-4056
> URL: https://issues.apache.org/jira/browse/FELIX-4056
> Project: Felix
> Issue Type: Bug
> Components: Maven SCR Plugin
> Affects Versions: maven-scr-plugin-1.8.0, maven-scr-plugin-1.9.0,
> maven-scr-plugin-1.11.0, maven-scr-plugin-1.12.0
> Reporter: Alexander Klimetschek
> Attachments: felix4056-sampleproject.zip
>
>
> FELIX-2492 was fixed in maven-scr-plugin 1.7.4 only. Starting with 1.8.0 and
> up until the latest release 1.12.0 it happens again, albeit with a different
> error message formatting:
> [INFO] --- maven-scr-plugin:1.12.0:scr (generate-scr-scrdescriptor) @
> vault-git ---
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2.360s
> [INFO] Finished at: Tue May 07 21:48:57 CEST 2013
> [INFO] Final Memory: 19M/216M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.12.0:scr
> (generate-scr-scrdescriptor) on project vault-git: Execution
> generate-scr-scrdescriptor of goal
> org.apache.felix:maven-scr-plugin:1.12.0:scr failed: A required class was
> missing while executing org.apache.felix:maven-scr-plugin:1.12.0:scr:
> org/slf4j/impl/StaticLoggerBinder
> [ERROR] -----------------------------------------------------
> [ERROR] realm = plugin>org.apache.felix:maven-scr-plugin:1.12.0
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] =
> file:/Users/alex/.m2/repository/org/apache/felix/maven-scr-plugin/1.12.0/maven-scr-plugin-1.12.0.jar
> [ERROR] urls[1] =
> file:/Users/alex/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
> [ERROR] urls[2] =
> file:/Users/alex/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
> [ERROR] urls[3] =
> file:/Users/alex/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> [ERROR] urls[4] =
> file:/Users/alex/.m2/repository/org/apache/felix/org.apache.felix.scr.generator/1.6.0/org.apache.felix.scr.generator-1.6.0.jar
> [ERROR] urls[5] =
> file:/Users/alex/.m2/repository/org/ow2/asm/asm-all/4.0/asm-all-4.0.jar
> [ERROR] urls[6] =
> file:/Users/alex/.m2/repository/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0.jar
> [ERROR] urls[7] =
> file:/Users/alex/.m2/repository/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar
> [ERROR] urls[8] =
> file:/Users/alex/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
> [ERROR] urls[9] =
> file:/Users/alex/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm
> ClassRealm[project>com.day.jcr.vault:vault-git:2.4.39-SNAPSHOT, parent:
> ClassRealm[maven.api, parent: null]]]
> [ERROR]
> [ERROR] -----------------------------------------------------:
> org.slf4j.impl.StaticLoggerBinder
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira