tree: 586fe7deb36dae68ceb20072ff7a3b65cb0a9400 [path history] [tgz]
  1. src/
  2. .gitignore
  3. pom.xml
  4. README.md
gora-maven-plugin/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.