Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Apache Gora Maven Plugin

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.

Goals Overview

The Gora Maven Plugin has two goals:

  • gora:generate generates Java sources from Apache Avro schema descriptors,
  • gora:help shows usage help.

Build plugin

To build and install plugin on the local machine just run:

mvn clean install

Usage

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

Related links

License

This work is provided under Apache License version 2.0. See LICENSE for more details.