My question is similar to Unable to compile and create .avro file from .avsc using Maven
I have tried all possible things, checked the maven project 100 times, still
Below is a sample POM file that I've successfully used. My guess is that your sourceDirectory & outputDirectory tags weren't properly defined...
4.0.0
com.example
helloworld
1.0-SNAPSHOT
jar
2.6.0-cdh5.4.0
1.7.7
1.1.0
UTF-8
UTF-8
org.apache.hadoop
hadoop-client
${hadoop.version}
org.apache.avro
avro
${avro.version}
org.apache.avro
avro-tools
${avro.version}
org.apache.mrunit
mrunit
${mrunit.version}
hadoop2
maven-compiler-plugin
3.0
1.7
org.apache.avro
avro-maven-plugin
${avro.version}
generate-sources
schema
${project.basedir}/src/main/avro/
${project.basedir}/src/main/java/
org.apache.maven.plugins
maven-eclipse-plugin
2.9
true