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

mismatch error occured but build is success. no java file genrated

    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 compilation

    • Story Points:
      3

      Description

      code: latest yang utils which given by janani

      yang:
      module Test {
      yang-version 1;
      namespace "http://huawei.com";
      prefix Ant;
      description "Interval before a route is declared invalid";

      typedef type-def

      { type string; }

      leaf one

      { type string; }

      leaf two

      { type123 type-def; }

      }

      mismatch error occured but build is success.
      If its build success, then i will check for JAVA files. so for mismatch, its should show build failure.

      Please check

      root1@root1-HP-EliteBook-840-G2:~/onos/utils/test$ sudo mvn clean install
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building onlab-test 1.6.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ onlab-test —
      [INFO] Deleting /home/root1/onos/utils/test/target
      [INFO]
      [INFO] — jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ onlab-test —
      [INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/home/root1/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US
      [INFO]
      [INFO] — yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) @ onlab-test —
      [INFO] Error in file: /home/root1/onos/utils/test/src/main/yang/Test_ospf.yang at line: 16 at position: 7
      mismatched input 'type123' expecting

      {'config', 'default', 'description', 'if-feature', 'mandatory', 'must', 'reference', 'status', 'type', 'units', 'when', '}

      '}
      [INFO] Source directory added to compilation root: /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen
      [INFO]
      [INFO] — maven-resources-plugin:2.7:resources (default-resources) @ onlab-test —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/root1/onos/utils/test/src/main/resources
      [INFO] Copying 1 resource
      [INFO]
      [INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @ onlab-test —
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] — maven-resources-plugin:2.7:testResources (default-testResources) @ onlab-test —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/root1/onos/utils/test/src/test/resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ onlab-test —
      [INFO] No sources to compile
      [INFO]
      [INFO] — maven-surefire-plugin:2.19.1:test (default-test) @ onlab-test —
      [INFO] No tests to run.
      [INFO]
      [INFO] — jacoco-maven-plugin:0.7.5.201505241946:report (default-report) @ onlab-test —
      [INFO] Skipping JaCoCo execution due to missing execution data file:/home/root1/onos/utils/test/target/jacoco.exec
      [INFO]
      [INFO] — maven-bundle-plugin:3.0.1:bundle (default-bundle) @ onlab-test —
      [INFO]
      [INFO] — maven-jar-plugin:2.6:test-jar (default) @ onlab-test —
      [INFO] Skipping packaging of the test-jar
      [INFO]
      [INFO] — maven-checkstyle-plugin:2.17:check (validate-checkstyle) @ onlab-test —
      [INFO]
      [INFO] — maven-install-plugin:2.5.2:install (default-install) @ onlab-test —
      [INFO] Installing /home/root1/onos/utils/test/target/onlab-test-1.6.0-SNAPSHOT.jar to /root/.m2/repository/org/onosproject/onlab-test/1.6.0-SNAPSHOT/onlab-test-1.6.0-SNAPSHOT.jar
      [INFO] Installing /home/root1/onos/utils/test/pom.xml to /root/.m2/repository/org/onosproject/onlab-test/1.6.0-SNAPSHOT/onlab-test-1.6.0-SNAPSHOT.pom
      [INFO]
      [INFO] — maven-bundle-plugin:3.0.1:install (default-install) @ onlab-test —
      [INFO] Installing org/onosproject/onlab-test/1.6.0-SNAPSHOT/onlab-test-1.6.0-SNAPSHOT.jar
      [INFO] Writing OBR metadata
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.520 s
      [INFO] Finished at: 2016-05-10T18:55:09+05:30
      [INFO] Final Memory: 31M/521M
      [INFO] ------------------------------------------------------------------------
      root1@root1-HP-EliteBook-840-G2:~/onos/utils/test$

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            bsaraswal bharat saraswal
            Reporter:
            sathishmurugesan sathishkumar murugesan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: