Uploaded image for project: 'Network Controller'
  1. Network Controller
  2. SDNC-723

sdnc/oam builds fail due to version incompatibility of yang-maven-plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Dublin Release
    • Dublin Release
    • None
    • None

      The building log has:

      [WARNING] Some problems were encountered while building the effective model for org.onap.sdnc.oam:platform-logic-restconfapi-yang:pom:1.5.1-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.opendaylight.yangtools:yang-maven-plugin is missing. @ org.onap.ccsdk.parent:odlparent-lite:1.2.2-SNAPSHOT, /home/ubuntu/.m2/repository/org/onap/ccsdk/parent/odlparent-lite/1.2.2-SNAPSHOT/odlparent-lite-1.2.2-SNAPSHOT.pom, line 475, column 14

       

      [ERROR] Failed to execute goal org.opendaylight.yangtools:yang-maven-plugin:3.0.0:generate-sources (default) on project platform-logic-restconfapi-yang: Execution default of goal org.opendaylight.yangtools:yang-maven-plugin:3.0.0:generate-sources failed: An API incompatibility was encountered while executing org.opendaylight.yangtools:yang-maven-plugin:3.0.0:generate-sources: java.lang.NoSuchMethodError: org.opendaylight.yangtools.yang.model.util.type.CompatUtils.compatLeafType(Lorg/opendaylight/yangtools/yang/model/api/LeafSchemaNode;)Lorg/opendaylight/yangtools/yang/model/api/TypeDefinition;

       

      The reason is that:

      In file ccsdk/parent/odlparent/odlparent-lite/pom.xml, the build.plugins.plugin for yang-maven-plugin doesn't set it's version.

      So it uses the lastest version 3.0.0, and there are some incompatibilities.

            wangeb wangeb
            wangeb wangeb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: