aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-29 17:22:36 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-29 17:22:36 -0800
commit1f9d57f90960b4aa538cb7f6e383820630d7d365 (patch)
tree634e2a9ea263785de2d314303c0cf83a7bdf583b /pom.xml
parent534331ccc9c9cbd7cdc2dbf84dfbbfdadcb54e28 (diff)
downloadtrackermap-server-1f9d57f90960b4aa538cb7f6e383820630d7d365.tar.gz
trackermap-server-1f9d57f90960b4aa538cb7f6e383820630d7d365.tar.bz2
trackermap-server-1f9d57f90960b4aa538cb7f6e383820630d7d365.zip
Add protobuf code generation
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 3562ef149..d12c0ec70 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,6 +15,7 @@
<jetty.version>9.4.20.v20190813</jetty.version>
<jersey.version>2.29</jersey.version>
<jackson.version>2.9.9</jackson.version> <!-- same version as jersey-media-json-jackson dependency -->
+ <protobuf.version>3.11.0</protobuf.version>
</properties>
<dependencies>
@@ -211,6 +212,11 @@
<version>3.0.50</version>
</dependency>
<dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>${protobuf.version}</version>
+ </dependency>
+ <dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
@@ -344,6 +350,30 @@
</dependencies>
</plugin>
<plugin>
+ <groupId>com.github.os72</groupId>
+ <artifactId>protoc-jar-maven-plugin</artifactId>
+ <version>3.8.0</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <protocArtifact>com.google.protobuf:protoc:${protobuf.version}</protocArtifact>
+ <inputDirectories>
+ <include>src/main/proto</include>
+ </inputDirectories>
+ <outputTargets>
+ <outputTarget>
+ <type>java</type>
+ </outputTarget>
+ </outputTargets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>