mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-protobuf.git
synced 2026-01-07 20:41:38 +00:00
07bf31270e8968c6de01002afcb3f0ba2e9caec6
Changed mvn pom version from 0.0.1-SNAPSHOT to 1.1.0-SNAPSHOT
wlan-cloud-opensync-protobuf
The scripts in this repository produce maven artifact that has all the java classes generated from the opensync protobuf definitions. The protobuf files are taken from Opensync repo
Build instructions
- make sure java jdk 9+ is installed
- make sure maven is installed
- make sure protoc version 3.12.4 is installed
- configure maven settings.xml with maven repository credentials
- vim ~/.m2/settings.xml
<settings>
<servers>
<server>
<id>tip-wlan-cloud-maven-repo</id>
<username>repo_user</username>
<password>password</password>
</server>
</servers>
</settings>
- configure maven toolchains.xml file with the location of the protoc executable
- $ vim ~/.m2/toolchains.xml
<?xml version="1.0" encoding="utf-8"?>
<toolchains>
<!-- protocol buffer 3.12.4 -->
<toolchain>
<type>protobuf</type>
<provides>
<version>3.12.4</version>
<vendor>google</vendor>
</provides>
<configuration>
<protocExecutable>/opt/local/bin/protoc</protocExecutable>
</configuration>
</toolchain>
</toolchains>
- $ mvn clean install
Results of the build will be in wlan-cloud-opensync-protobuf/target/tip-wlan-opensync-protobuf-0.0.1-SNAPSHOT.jar They are also published in the maven repository tip-wlan-cloud-maven-repo, and can be included as maven dependencies:
<dependency>
<groupId>com.telecominfraproject.wlan</groupId>
<artifactId>tip-wlan-opensync-protobuf</artifactId>
<version>${tip-wlan-cloud.release.version}</version>
</dependency>
Description
Languages
Protocol Buffer
100%