From 3a168e3c0a98baba9951a9f5cd2eb6809fda04e2 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 17 Dec 2021 16:58:17 +0100 Subject: Add Maven profile to generate Thrift API The Thrift API can be generated with the following command: mvn -P thrift:generate The generated output files are copied over the old files and can be modified before a manual commit takes place. --- pom.xml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/pom.xml b/pom.xml index 1b31e68..ed067a1 100644 --- a/pom.xml +++ b/pom.xml @@ -12,6 +12,8 @@ UTF-8 + ${basedir}/src/main/thrift/bwlp.thrift + ${basedir}/src/main/java @@ -27,6 +29,42 @@ + + + thrift:generate + + validate + + + org.codehaus.mojo + exec-maven-plugin + 3.0.0 + + + thrift:gen + validate + + exec + + + + + thrift + + --gen + java + -v + -out + ${thrift.outputDir} + ${thrift.program} + + + + + + + + -- cgit v1.2.3-55-g7522