Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How to Include yang-parser in your Project

1. Maven: Include the oran-publicrepository in your settings.xml

Create a profile for the oran public “oran-public” repository

Expand
titleoran-public profile
Code Block
languagexml
    <profile>
      <id>oran-public</id>
      <repositories>
        <repository>
          <id>oran-public</id>
          <name>oran-public</name>
          <url>https://nexus.o-ran-sc.org/content/repositories/public/</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>oran-public</id>
          <name>oran-public</name>
          <url>https://nexus.o-ran-sc.org/content/repositories/public/</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>

...

Code Block
<dependency>
  <groupId>org.oran.smo.yangtools.parser</groupId>
  <artifactId>yang-parser-jar</artifactId>
  <version>1.1.0</version>
  <scope>system</scope>
  <systemPath>${project.basedir}/src/main/resources/yang-parser-jar-1.1.0.jar</systemPath>
</dependency>

Sample project using yang-

...

parser

This small sample project should provide enough information to help you start using yang-parser in your project.

...