Skip to content

Instantly share code, notes, and snippets.

@talfco
Last active May 21, 2020 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talfco/c057d428e6720da37e2facf317bd516c to your computer and use it in GitHub Desktop.
Save talfco/c057d428e6720da37e2facf317bd516c to your computer and use it in GitHub Desktop.
Avro Compiler in Maven.pom
<plugin>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<version>1.9.2</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>schema</goal>
</goals>
<configuration>
<sourceDirectory>${project.basedir}/src/main/avro/</sourceDirectory>
<outputDirectory>${project.basedir}/src/main/java/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment