The Gora Maven Plugin is used to generate Java sources from Apache Avro *.json schema descriptors. The plugin code was originally written by Gerhard Gossen and laterly by Viacheslav Dobromyslov.
The Gora Maven Plugin has two goals:
- gora:generate generates Java sources from Apache Avro schema descriptors,
- gora:help shows usage help.
To build and install plugin on the local machine just run:
mvn clean install
Add to your pom.xml the following plugin:
<build>
<plugins>
<plugin>
<groupId>org.apache.gora.maven.plugin</groupId>
<artifactId>gora-maven-plugin</artifactId>
<version>${gora.version}</version>
<configuration>
<sourceDirectory>${basedir}/src/main/avro</sourceDirectory>
<outputDirectory>${basedir}/src/main/java</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
And then run:
mvn gora:generate
This work is provided under Apache License version 2.0. See LICENSE for more details.