diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-29 17:22:36 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-29 17:22:36 -0800 |
commit | 1f9d57f90960b4aa538cb7f6e383820630d7d365 (patch) | |
tree | 634e2a9ea263785de2d314303c0cf83a7bdf583b /pom.xml | |
parent | 534331ccc9c9cbd7cdc2dbf84dfbbfdadcb54e28 (diff) | |
download | trackermap-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.xml | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -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> |