This OpenCB repository implements the Avro schemas from GA4GH. These are available at http://ga4gh.org/#/schemas. This Java library will be versioned with as the Avro schema used.
This version implements GA4GH version 0.5.1. Avro Schemas are stored in src/main/resources in avro folder at https://github.com/opencb/ga4gh/tree/master/src/main/resources/avro
Currently Java 7 code is generated using the following Maven plugin:
<plugin>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<version>1.7.7</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>schema</goal>
<goal>idl-protocol</goal>
</goals>
<configuration>
<sourceDirectory>${project.basedir}/src/main/resources/avro/</sourceDirectory>
<outputDirectory>${project.basedir}/src/main/java/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
You will need Java 7+ to run this library. You can use this repository in two different ways. First, OpenCB libraries are deployed to Maven Central Repository as you can see at http://search.maven.org/#search%7Cga%7C1%7Copencb. So you only need to add this dependency to your pom.xml:
<dependency>
<groupId>org.opencb</groupId>
<artifactId>ga4gh</artifactId>
<version>0.5.1</version>
</dependency>
Second, you can clone this project using Git and use maven to build and install it in your local repository:
git clone https://github.com/opencb/ga4gh.git
mvn clean install