leohilbert / flatbuffers-maven-plugin

integrate the flatbuffer-compiler into the maven lifecycle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maven Flatbuffers Plugin

A plugin that integrates flatbuffers compiler (flatc) into Maven lifecycle. This is project is inspired by xolstice/protobuf-maven-plugin.

Example usage

  1. install the flatc-binary
  2. Move your fbs-files to src/main/flatbuffers
  3. 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>
    
  4. run mvn clean compile

About

integrate the flatbuffer-compiler into the maven lifecycle

License:Other


Languages

Language:Java 100.0%