You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Alexander Klimetschek (JIRA)" <ji...@apache.org> on 2013/05/07 21:59:15 UTC

[jira] [Commented] (FELIX-4056) scr plugin: a required class was missing for org.slf4j.impl.StaticLoggerBinder

    [ https://issues.apache.org/jira/browse/FELIX-4056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13651240#comment-13651240 ] 

Alexander Klimetschek commented on FELIX-4056:
----------------------------------------------

The same "workaround" as in FELIX-2492 applies - add dependency to slf4j-simple with scope=provided in your pom.

                
> 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
>
> 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