A plugin that integrates flatbuffers compiler (flatc) into Maven lifecycle. This is project is inspired by xolstice/protobuf-maven-plugin.
- install the flatc-binary
- Move your fbs-files to
src/main/flatbuffers
- Add this to your pom.xml
<pluginRepositories> <pluginRepository> <id>jitpack.io</id> <url>https://jitpack.io</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.github.leohilbert</groupId> <artifactId>flatbuffers-maven-plugin</artifactId> <version>1.0.2</version> <extensions>true</extensions> <configuration> <flatcExecutable>flatc</flatcExecutable> </configuration> <executions> <execution> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
- run
mvn clean compile