Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
stylenone

How to Include yang-parser in your Project

1. Include the oran public repository in your settings.xml

Create a profile for the oran public repository

...

Code Block
languagexml
<dependency>
    <groupId>org.oran.smo.yangtools.parser</groupId>
    <artifactId>yang-parser-jar</artifactId>
    <version>1.1.0</version>
</dependency>

2. Install the JAR into the Local Repository

Download the yang-parser-jar from https://nexus.o-ran-sc.org/#view-repositoriesthen install in the local repository

...

Code Block
languagexml
<dependency>
    <groupId>org.oran.smo.yangtools.parser</groupId>
    <artifactId>yang-parser-jar</artifactId>
    <version>1.1.0</version>
</dependency>

3. Add local dependencies directly (deprecated but still working)

Download the yang-parser-jar from https://nexus.o-ran-sc.org/#view-repositories then add as a local dependency

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-parse

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

...