Compiling error

Elena Batanero
 

Hello,

 

I have got this error while doing: mvn clean install –DskipTests

 

[ERROR] yang-to-sources: Unable to generate sources with org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl generator

java.lang.ClassNotFoundException: org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl

                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)

                at java.lang.Class.forName0(Native Method)

                at java.lang.Class.forName(Class.java:264)

                at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.getInstance(YangToSourcesProcessor.java:344)

                at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSourcesWithOneGenerator(YangToSourcesProcessor.java:299)

                at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSources(YangToSourcesProcessor.java:275)

                at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.execute(YangToSourcesProcessor.java:96)

                at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.conditionalExecute(YangToSourcesProcessor.java:117)

                at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesMojo.execute(YangToSourcesMojo.java:121)

                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)

[ERROR] yang-to-sources: One or more code generators failed, including failed list(generatorClass=exception) {org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl=java.lang.ClassNotFoundException}

 

Did anyone have the same error?

 

Regads,

 

Elena.

 

 

Join nemo-dev@lists.opendaylight.org to automatically receive all group messages.