Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4563

build failure for submodule

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Environment:

      ONOS BUILD

    • Story Points:
      3

      Description

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.603 s
      [INFO] Finished at: 2016-05-19T12:51:28+05:30
      [INFO] Final Memory: 19M/310M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: A type incompatibility occured while executing org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java: org.onosproject.yangutils.translator.tojava.javamodel.YangJavaGrouping cannot be cast to org.onosproject.yangutils.translator.tojava.TempJavaCodeFragmentFilesContainer
      [ERROR] -----------------------------------------------------
      [ERROR] realm = plugin>org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/root/.m2/repository/org/onosproject/yangutils-maven-plugin/1.0.0-SNAPSHOT/yangutils-maven-plugin-1.0.0-SNAPSHOT.jar
      [ERROR] urls[1] = file:/root/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
      [ERROR] urls[2] = file:/root/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
      [ERROR] urls[3] = file:/root/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
      [ERROR] urls[4] = file:/root/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
      [ERROR] urls[5] = file:/root/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
      [ERROR] urls[6] = file:/root/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
      [ERROR] urls[7] = file:/root/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      [ERROR] urls[8] = file:/root/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
      [ERROR] urls[9] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
      [ERROR] urls[10] = file:/root/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
      [ERROR] urls[11] = file:/root/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
      [ERROR] urls[12] = file:/root/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      [ERROR] urls[13] = file:/root/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
      [ERROR] urls[14] = file:/root/.m2/repository/org/apache/felix/maven-scr-plugin/1.21.0/maven-scr-plugin-1.21.0.jar
      [ERROR] urls[15] = file:/root/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
      [ERROR] urls[16] = file:/root/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
      [ERROR] urls[17] = file:/root/.m2/repository/org/apache/felix/org.apache.felix.scr.generator/1.13.0/org.apache.felix.scr.generator-1.13.0.jar
      [ERROR] urls[18] = file:/root/.m2/repository/org/ow2/asm/asm-all/5.0.2/asm-all-5.0.2.jar
      [ERROR] urls[19] = file:/root/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
      [ERROR] urls[20] = file:/root/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
      [ERROR] urls[21] = file:/root/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
      [ERROR] urls[22] = file:/root/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
      [ERROR] urls[23] = file:/root/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
      [ERROR] urls[24] = file:/root/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.6/wstx-asl-3.2.6.jar
      [ERROR] urls[25] = file:/root/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
      [ERROR] urls[26] = file:/root/.m2/repository/org/sonatype/spice/model-builder/1.3/model-builder-1.3.jar
      [ERROR] urls[27] = file:/root/.m2/repository/org/apache/maven/maven-project-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.jar
      [ERROR] urls[28] = file:/root/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.19.1/maven-surefire-plugin-2.19.1.jar
      [ERROR] urls[29] = file:/root/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.19.1/maven-surefire-common-2.19.1.jar
      [ERROR] urls[30] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-booter/2.19.1/surefire-booter-2.19.1.jar
      [ERROR] urls[31] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.jar
      [ERROR] urls[32] = file:/root/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar
      [ERROR] urls[33] = file:/root/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
      [ERROR] urls[34] = file:/root/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
      [ERROR] urls[35] = file:/root/.m2/repository/org/antlr/antlr4-runtime/4.5/antlr4-runtime-4.5.jar
      [ERROR] urls[36] = file:/root/.m2/repository/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.jar
      [ERROR] urls[37] = file:/root/.m2/repository/org/codehaus/mojo/build-helper-maven-plugin/1.10/build-helper-maven-plugin-1.10.jar
      [ERROR] urls[38] = file:/root/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
      [ERROR] urls[39] = file:/root/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar
      [ERROR] urls[40] = file:/root/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import from realm ClassRealm[project>org.onosproject:onlab-test:1.6.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
      [ERROR]
      [ERROR] -----------------------------------------------------
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [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/PluginExecutionException
      0

      Log with debug:
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.856 s
      [INFO] Finished at: 2016-05-19T12:52:09+05:30
      [INFO] Final Memory: 20M/376M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: A type incompatibility occured while executing org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java: org.onosproject.yangutils.translator.tojava.javamodel.YangJavaGrouping cannot be cast to org.onosproject.yangutils.translator.tojava.TempJavaCodeFragmentFilesContainer
      [ERROR] -----------------------------------------------------
      [ERROR] realm = plugin>org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/root/.m2/repository/org/onosproject/yangutils-maven-plugin/1.0.0-SNAPSHOT/yangutils-maven-plugin-1.0.0-SNAPSHOT.jar
      [ERROR] urls[1] = file:/root/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
      [ERROR] urls[2] = file:/root/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
      [ERROR] urls[3] = file:/root/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
      [ERROR] urls[4] = file:/root/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
      [ERROR] urls[5] = file:/root/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
      [ERROR] urls[6] = file:/root/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
      [ERROR] urls[7] = file:/root/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      [ERROR] urls[8] = file:/root/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
      [ERROR] urls[9] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
      [ERROR] urls[10] = file:/root/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
      [ERROR] urls[11] = file:/root/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
      [ERROR] urls[12] = file:/root/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      [ERROR] urls[13] = file:/root/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
      [ERROR] urls[14] = file:/root/.m2/repository/org/apache/felix/maven-scr-plugin/1.21.0/maven-scr-plugin-1.21.0.jar
      [ERROR] urls[15] = file:/root/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
      [ERROR] urls[16] = file:/root/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
      [ERROR] urls[17] = file:/root/.m2/repository/org/apache/felix/org.apache.felix.scr.generator/1.13.0/org.apache.felix.scr.generator-1.13.0.jar
      [ERROR] urls[18] = file:/root/.m2/repository/org/ow2/asm/asm-all/5.0.2/asm-all-5.0.2.jar
      [ERROR] urls[19] = file:/root/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
      [ERROR] urls[20] = file:/root/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
      [ERROR] urls[21] = file:/root/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
      [ERROR] urls[22] = file:/root/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
      [ERROR] urls[23] = file:/root/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
      [ERROR] urls[24] = file:/root/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.6/wstx-asl-3.2.6.jar
      [ERROR] urls[25] = file:/root/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
      [ERROR] urls[26] = file:/root/.m2/repository/org/sonatype/spice/model-builder/1.3/model-builder-1.3.jar
      [ERROR] urls[27] = file:/root/.m2/repository/org/apache/maven/maven-project-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.jar
      [ERROR] urls[28] = file:/root/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.19.1/maven-surefire-plugin-2.19.1.jar
      [ERROR] urls[29] = file:/root/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.19.1/maven-surefire-common-2.19.1.jar
      [ERROR] urls[30] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-booter/2.19.1/surefire-booter-2.19.1.jar
      [ERROR] urls[31] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.jar
      [ERROR] urls[32] = file:/root/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar
      [ERROR] urls[33] = file:/root/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
      [ERROR] urls[34] = file:/root/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
      [ERROR] urls[35] = file:/root/.m2/repository/org/antlr/antlr4-runtime/4.5/antlr4-runtime-4.5.jar
      [ERROR] urls[36] = file:/root/.m2/repository/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.jar
      [ERROR] urls[37] = file:/root/.m2/repository/org/codehaus/mojo/build-helper-maven-plugin/1.10/build-helper-maven-plugin-1.10.jar
      [ERROR] urls[38] = file:/root/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
      [ERROR] urls[39] = file:/root/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar
      [ERROR] urls[40] = file:/root/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import from realm ClassRealm[project>org.onosproject:onlab-test:1.6.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
      [ERROR]
      [ERROR] -----------------------------------------------------
      [ERROR] -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: A type incompatibility occured while executing org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java: org.onosproject.yangutils.translator.tojava.javamodel.YangJavaGrouping cannot be cast to org.onosproject.yangutils.translator.tojava.TempJavaCodeFragmentFilesContainer
      -----------------------------------------------------
      realm = plugin>org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT
      strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      urls[0] = file:/root/.m2/repository/org/onosproject/yangutils-maven-plugin/1.0.0-SNAPSHOT/yangutils-maven-plugin-1.0.0-SNAPSHOT.jar
      urls[1] = file:/root/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
      urls[2] = file:/root/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
      urls[3] = file:/root/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
      urls[4] = file:/root/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
      urls[5] = file:/root/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
      urls[6] = file:/root/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
      urls[7] = file:/root/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      urls[8] = file:/root/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
      urls[9] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
      urls[10] = file:/root/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
      urls[11] = file:/root/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
      urls[12] = file:/root/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      urls[13] = file:/root/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
      urls[14] = file:/root/.m2/repository/org/apache/felix/maven-scr-plugin/1.21.0/maven-scr-plugin-1.21.0.jar
      urls[15] = file:/root/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
      urls[16] = file:/root/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
      urls[17] = file:/root/.m2/repository/org/apache/felix/org.apache.felix.scr.generator/1.13.0/org.apache.felix.scr.generator-1.13.0.jar
      urls[18] = file:/root/.m2/repository/org/ow2/asm/asm-all/5.0.2/asm-all-5.0.2.jar
      urls[19] = file:/root/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
      urls[20] = file:/root/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
      urls[21] = file:/root/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
      urls[22] = file:/root/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
      urls[23] = file:/root/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
      urls[24] = file:/root/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.6/wstx-asl-3.2.6.jar
      urls[25] = file:/root/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
      urls[26] = file:/root/.m2/repository/org/sonatype/spice/model-builder/1.3/model-builder-1.3.jar
      urls[27] = file:/root/.m2/repository/org/apache/maven/maven-project-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.jar
      urls[28] = file:/root/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.19.1/maven-surefire-plugin-2.19.1.jar
      urls[29] = file:/root/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.19.1/maven-surefire-common-2.19.1.jar
      urls[30] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-booter/2.19.1/surefire-booter-2.19.1.jar
      urls[31] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.jar
      urls[32] = file:/root/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar
      urls[33] = file:/root/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
      urls[34] = file:/root/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
      urls[35] = file:/root/.m2/repository/org/antlr/antlr4-runtime/4.5/antlr4-runtime-4.5.jar
      urls[36] = file:/root/.m2/repository/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.jar
      urls[37] = file:/root/.m2/repository/org/codehaus/mojo/build-helper-maven-plugin/1.10/build-helper-maven-plugin-1.10.jar
      urls[38] = file:/root/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
      urls[39] = file:/root/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar
      urls[40] = file:/root/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar
      Number of foreign imports: 1
      import: Entry[import from realm ClassRealm[project>org.onosproject:onlab-test:1.6.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]

      -----------------------------------------------------

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
      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:862)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
      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)
      Caused by: org.apache.maven.plugin.PluginExecutionException: A type incompatibility occured while executing org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java: org.onosproject.yangutils.translator.tojava.javamodel.YangJavaGrouping cannot be cast to org.onosproject.yangutils.translator.tojava.TempJavaCodeFragmentFilesContainer
      -----------------------------------------------------
      realm = plugin>org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT
      strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      urls[0] = file:/root/.m2/repository/org/onosproject/yangutils-maven-plugin/1.0.0-SNAPSHOT/yangutils-maven-plugin-1.0.0-SNAPSHOT.jar
      urls[1] = file:/root/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
      urls[2] = file:/root/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
      urls[3] = file:/root/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
      urls[4] = file:/root/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
      urls[5] = file:/root/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
      urls[6] = file:/root/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
      urls[7] = file:/root/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      urls[8] = file:/root/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
      urls[9] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
      urls[10] = file:/root/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
      urls[11] = file:/root/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
      urls[12] = file:/root/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      urls[13] = file:/root/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
      urls[14] = file:/root/.m2/repository/org/apache/felix/maven-scr-plugin/1.21.0/maven-scr-plugin-1.21.0.jar
      urls[15] = file:/root/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
      urls[16] = file:/root/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
      urls[17] = file:/root/.m2/repository/org/apache/felix/org.apache.felix.scr.generator/1.13.0/org.apache.felix.scr.generator-1.13.0.jar
      urls[18] = file:/root/.m2/repository/org/ow2/asm/asm-all/5.0.2/asm-all-5.0.2.jar
      urls[19] = file:/root/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
      urls[20] = file:/root/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
      urls[21] = file:/root/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
      urls[22] = file:/root/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
      urls[23] = file:/root/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
      urls[24] = file:/root/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.6/wstx-asl-3.2.6.jar
      urls[25] = file:/root/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
      urls[26] = file:/root/.m2/repository/org/sonatype/spice/model-builder/1.3/model-builder-1.3.jar
      urls[27] = file:/root/.m2/repository/org/apache/maven/maven-project-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.jar
      urls[28] = file:/root/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.19.1/maven-surefire-plugin-2.19.1.jar
      urls[29] = file:/root/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.19.1/maven-surefire-common-2.19.1.jar
      urls[30] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-booter/2.19.1/surefire-booter-2.19.1.jar
      urls[31] = file:/root/.m2/repository/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.jar
      urls[32] = file:/root/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar
      urls[33] = file:/root/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
      urls[34] = file:/root/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
      urls[35] = file:/root/.m2/repository/org/antlr/antlr4-runtime/4.5/antlr4-runtime-4.5.jar
      urls[36] = file:/root/.m2/repository/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.jar
      urls[37] = file:/root/.m2/repository/org/codehaus/mojo/build-helper-maven-plugin/1.10/build-helper-maven-plugin-1.10.jar
      urls[38] = file:/root/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
      urls[39] = file:/root/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar
      urls[40] = file:/root/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar
      Number of foreign imports: 1
      import: Entry[import from realm ClassRealm[project>org.onosproject:onlab-test:1.6.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]

      -----------------------------------------------------

      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:196)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      ... 20 more
      Caused by: java.lang.ClassCastException: org.onosproject.yangutils.translator.tojava.javamodel.YangJavaGrouping cannot be cast to org.onosproject.yangutils.translator.tojava.TempJavaCodeFragmentFilesContainer
      at org.onosproject.yangutils.translator.tojava.JavaCodeGeneratorUtil.close(JavaCodeGeneratorUtil.java:255)
      at org.onosproject.yangutils.translator.tojava.JavaCodeGeneratorUtil.translatorErrorHandler(JavaCodeGeneratorUtil.java:227)
      at org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:183)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      ... 21 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/PluginExecutionException
      root1@root1-HP-EliteBook-840-G2:~/onos/utils/test$

        Attachments

        1. submodule-one.yang
          0.3 kB
        2. submodule-two.yang
          0.3 kB
        3. top.yang
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              Vidyashree-Huawei Vidyashree Rama
              Reporter:
              sathishmurugesan sathishkumar murugesan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: