Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6618

Maven doesn't export org.slf4j.event.Level

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.1
    • Component/s: None
    • Labels:
      None
    • Flags:
      Important

      Description

      Hi, this is the same issue as MNG-6360. Unfortunately I was not able to reopen it so I am creating new one.

      I was able to reproduce it when I tried to create maven plugin for running kafka broker during integration tests. Kafka refers to org.slf4j.event.Level and this causes following exception during plugin execution.

      [ERROR] [KafkaServer id=1] Fatal error during KafkaServer shutdown.
      java.lang.NoClassDefFoundError: org/slf4j/event/Level
                      at kafka.utils.CoreUtils$.swallow$default$3(CoreUtils.scala:84)
                      at kafka.server.KafkaServer.shutdown(KafkaServer.scala:567)
                      at net.sla.buildtools.kafka.maven.plugin.SingletonLauncher.stop(SingletonLauncher.java:73)
                      at net.sla.buildtools.kafka.maven.plugin.StopKafkaBrokerMojo.execute(StopKafkaBrokerMojo.java:18)
                      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
                      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
                      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
                      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
                      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
                      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
                      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
                      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
                      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
                      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
                      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
                      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
                      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
                      at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:498)
                      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
                      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
                      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
                      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
                      at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                      at java.lang.reflect.Method.invoke(Method.java:498)
                      at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:65)
      Caused by: java.lang.ClassNotFoundException: org.slf4j.event.Level
                      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
                      at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
                      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
                      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
                      ... 32 more
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slachiewicz Sylwester Lachiewicz
                Reporter:
                viacheslav.yakunin Viacheslav Yakunin
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: