play-jnc


License

License

Categories

Categories

Net
GroupId

GroupId

com.airlenet.yang
ArtifactId

ArtifactId

play-jnc
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

play-jnc
play-jnc
Project Organization

Project Organization

airlenet

Download play-jnc

How to add to project

<!-- https://jarcasting.com/artifacts/com.airlenet.yang/play-jnc/ -->
<dependency>
    <groupId>com.airlenet.yang</groupId>
    <artifactId>play-jnc</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.airlenet.yang/play-jnc/
implementation 'com.airlenet.yang:play-jnc:1.1.0'
// https://jarcasting.com/artifacts/com.airlenet.yang/play-jnc/
implementation ("com.airlenet.yang:play-jnc:1.1.0")
'com.airlenet.yang:play-jnc:jar:1.1.0'
<dependency org="com.airlenet.yang" name="play-jnc" rev="1.1.0">
  <artifact name="play-jnc" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.airlenet.yang', module='play-jnc', version='1.1.0')
)
libraryDependencies += "com.airlenet.yang" % "play-jnc" % "1.1.0"
[com.airlenet.yang/play-jnc "1.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
ch.ethz.ganymed : ganymed-ssh2 jar 262
org.slf4j : slf4j-api Optional jar 1.7.25

test (1)

Group / Artifact Type Version
junit : junit Optional jar 4.12

Project Modules

There are no modules declared in this project.

play-yang

Play Yang based on JNC,and a plugin for pyang to generate Java classes from YANG models.

Reference JNC pyang

play-jnc

Modify based on JNC

yang-maven-plugin

Download

Download the latest JAR or grab via Maven:

<dependency>
  <groupId>com.airlenet.yang</groupId>
  <artifactId>yang-maven-plugin</artifactId>
  <version>1.2.0-SNAPSHOT</version>
</dependency>

or Gradle:

compile 'com.airlenet.yang:yang-maven-plugin:1.2.0-SNAPSHOT'

Snapshots of the development version are available in Sonatype's snapshots repository.

Usage

<plugins>
    <plugin>
        <groupId>com.airlenet.yang</groupId>
        <artifactId>yang-maven-plugin</artifactId>
        <version>1.2.0-SNAPSHOT</version>
        <configuration>
            <skip>false</skip>
            <showWarnings>false</showWarnings>
            <errorAbort>false</errorAbort>
            <excludes>
                <exclude>tailf/*.yang</exclude>
                <exclude>ietf/*.yang</exclude>
                <exclude>iana/*.yang</exclude>
            </excludes>
        </configuration>
        <executions>
            <execution>
                <id>process</id>
                <goals>
                    <goal>process</goal>
                </goals>
                <configuration>
                    <outputDirectory>target/generated-sources/java</outputDirectory><!-- src/main/java -->
                    <packageName>com.airlenet.yang.model</packageName>
                </configuration>
            </execution>
        </executions>
    </plugin>
    <!-- add source resource: java class & resource -->
    <plugin>
       <groupId>org.codehaus.mojo</groupId>
       <artifactId>build-helper-maven-plugin</artifactId>
       <version>1.7</version>
       <executions>
           <execution>
               <id>add-source</id>
               <phase>generate-sources</phase>
               <goals>
                   <goal>add-source</goal>
               </goals>
               <configuration>
                   <sources>
                       <source>target/generated-sources/java</source>
                   </sources>
               </configuration>
           </execution>
           <execution>
               <id>add-resource</id>
               <phase>generate-resources</phase>
               <goals>
                   <goal>add-resource</goal>
               </goals>
               <configuration>
                   <resources>
                       <resource>
                           <directory>target/generated-sources/java</directory>
                       </resource>
                   </resources>
               </configuration>
           </execution>
       </executions>
    </plugin>
</plugins>
mvn package                 # generator java class from yang model,compile,package

mvn yang:validate           # validate yang model

yang-example

License

See License File.

Versions

Version
1.1.0
1.0.1.RELEASE
1.0.0.RELEASE