Hi, I'm pretty sure that you're using a version of Maven that's too old for the latest bnd-maven-plugin. Try checking your version and upgrading.
Tim Sent from my iPhone > On 12 Nov 2016, at 06:44, Daghan ACAY <daghana...@hotmail.com> wrote: > > I am following the tutorial at > http://enroute.osgi.org/tutorial_eval/050-start.html and I am having > difficulty making it work. I found one problem and fixed it on my local > > > parent pom dependency should be changed by dropping the SNAPSHOT > > > <dependency> > <groupId>org.osgi</groupId> > <artifactId>osgi.enroute.base.api</artifactId> > <version>2.0.0-SNAPSHOT</version> > </dependency> > also the code here should be updated > > https://github.com/osgi/osgi.enroute.examples.eval/blob/master/pom.xml > > > However when I create the pom.xml for the API as defined in > http://enroute.osgi.org/tutorial_eval/300-api and run > > > mvn verify > > > I get the following error > > > > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > biz.aQute.bnd:bnd-maven-plugin:3.3.0:bnd-process (default) on project > osgi.enroute.examples.eval.api: Execution default of goal > biz.aQute.bnd:bnd-maven-plugin:3.3.0:bnd-process failed: A required class was > missing while executing biz.aQute.bnd:bnd-maven-plugin:3.3.0:bnd-process: > org/slf4j/LoggerFactory > [ERROR] ----------------------------------------------------- > [ERROR] realm = plugin>biz.aQute.bnd:bnd-maven-plugin:3.3.0 > [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > [ERROR] urls[0] = > file:/home/daghan/.m2/repository/biz/aQute/bnd/bnd-maven-plugin/3.3.0/bnd-maven-plugin-3.3.0.jar > [ERROR] urls[1] = > file:/home/daghan/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar > [ERROR] urls[2] = > file:/home/daghan/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar > [ERROR] urls[3] = > file:/home/daghan/.m2/repository/biz/aQute/bnd/biz.aQute.bndlib/3.3.0/biz.aQute.bndlib-3.3.0.jar > [ERROR] Number of foreign imports: 1 > [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] > [ERROR] > [ERROR] -----------------------------------------------------: > org.slf4j.LoggerFactory > [ERROR] -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal biz.aQute.bnd:bnd-maven-plugin:3.3.0:bnd-process (default) on project > osgi.enroute.examples.eval.api: Execution default of goal > biz.aQute.bnd:bnd-maven-plugin:3.3.0:bnd-process failed: A required class was > missing while executing biz.aQute.bnd:bnd-maven-plugin:3.3.0:bnd-process: > org/slf4j/LoggerFactory > ----------------------------------------------------- > realm = plugin>biz.aQute.bnd:bnd-maven-plugin:3.3.0 > strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > urls[0] = > file:/home/daghan/.m2/repository/biz/aQute/bnd/bnd-maven-plugin/3.3.0/bnd-maven-plugin-3.3.0.jar > urls[1] = > file:/home/daghan/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar > urls[2] = > file:/home/daghan/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar > urls[3] = > file:/home/daghan/.m2/repository/biz/aQute/bnd/biz.aQute.bndlib/3.3.0/biz.aQute.bndlib-3.3.0.jar > Number of foreign imports: 1 > import: Entry[import from realm ClassRealm[maven.api, parent: null]] > > ----------------------------------------------------- > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) > 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:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > 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:497) > 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) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution > default of goal biz.aQute.bnd:bnd-maven-plugin:3.3.0:bnd-process failed: A > required class was missing while executing > biz.aQute.bnd:bnd-maven-plugin:3.3.0:bnd-process: org/slf4j/LoggerFactory > ----------------------------------------------------- > realm = plugin>biz.aQute.bnd:bnd-maven-plugin:3.3.0 > strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > urls[0] = > file:/home/daghan/.m2/repository/biz/aQute/bnd/bnd-maven-plugin/3.3.0/bnd-maven-plugin-3.3.0.jar > urls[1] = > file:/home/daghan/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar > urls[2] = > file:/home/daghan/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar > urls[3] = > file:/home/daghan/.m2/repository/biz/aQute/bnd/biz.aQute.bndlib/3.3.0/biz.aQute.bndlib-3.3.0.jar > Number of foreign imports: 1 > import: Entry[import from realm ClassRealm[maven.api, parent: null]] > > ----------------------------------------------------- > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:127) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: org.apache.maven.plugin.PluginContainerException: A required class > was missing while executing biz.aQute.bnd:bnd-maven-plugin:3.3.0:bnd-process: > org/slf4j/LoggerFactory > ----------------------------------------------------- > realm = plugin>biz.aQute.bnd:bnd-maven-plugin:3.3.0 > strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > urls[0] = > file:/home/daghan/.m2/repository/biz/aQute/bnd/bnd-maven-plugin/3.3.0/bnd-maven-plugin-3.3.0.jar > urls[1] = > file:/home/daghan/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar > urls[2] = > file:/home/daghan/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar > urls[3] = > file:/home/daghan/.m2/repository/biz/aQute/bnd/biz.aQute.bndlib/3.3.0/biz.aQute.bndlib-3.3.0.jar > Number of foreign imports: 1 > import: Entry[import from realm ClassRealm[maven.api, parent: null]] > > ----------------------------------------------------- > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:125) > ... 20 more > Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory > at aQute.bnd.osgi.Processor.<init>(Processor.java:135) > at aQute.bnd.maven.plugin.BndMavenPlugin.execute(BndMavenPlugin.java:123) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > ... 20 more > Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory > at > org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) > at > org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259) > at > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235) > at > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227) > ... 23 more > [ERROR] > [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/PluginContainerException > > > Can someone help me out to define the correct dependencies? > > Regards > > -Daghan > > > _______________________________________________ > OSGi Developer Mail List > osgi-dev@mail.osgi.org > https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev