title: unable to generate source code from avro schema files
body: <p>I know this topic had been asked several times on this site on other places. I have performed due diligence to make sure the solutions from previous similar questions have been tried.  But still I could not make it work. The problem I have is: I could not generate source code from avro schema using maven in Eclipse(neon version with M2E installed). When I tried "mvn clean generate-sources" or "mvn clean compile", the mvn result is success, but no source codes generated in target directory.</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building maven-avro10 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ maven-avro10 ---
  [INFO] Deleting C:\EclipseWS_forOlderProjects\maven-avro10\target
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.101 s
  [INFO] Finished at: 2018-02-18T20:25:46-05:00
  [INFO] Final Memory: 8M/241M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>here is my pom.xml file </p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;Maven-Avro&lt;/groupId&gt;
    &lt;artifactId&gt;maven-avro10&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
  
    &lt;name&gt;maven-avro10&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
       &lt;project.basedir&gt;C:\EclipseWS_forOlderProjects\maven-avro10&lt;/project.basedir&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.avro&lt;/groupId&gt;
        &lt;artifactId&gt;avro&lt;/artifactId&gt;
        &lt;version&gt;1.8.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
      &lt;groupId&gt;org.apache.avro&lt;/groupId&gt;
      &lt;artifactId&gt;avro-tools&lt;/artifactId&gt;
      &lt;version&gt;1.8.2&lt;/version&gt;
  &lt;/dependency&gt;
  
         &lt;dependency&gt;
          &lt;groupId&gt;org.apache.avro&lt;/groupId&gt;
          &lt;artifactId&gt;avro-compiler&lt;/artifactId&gt;  
          &lt;version&gt;1.8.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-jdk14&lt;/artifactId&gt;
          &lt;version&gt;1.7.25&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
    &lt;pluginManagement&gt;
    &lt;plugins&gt;
    &lt;plugin&gt;
  
    &lt;groupId&gt;org.apache.avro&lt;/groupId&gt;
    &lt;artifactId&gt;avro-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;1.8.2&lt;/version&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;phase&gt;generate-sources&lt;/phase&gt;
        &lt;goals&gt;
          &lt;goal&gt;schema&lt;/goal&gt;
        &lt;/goals&gt;
         &lt;configuration&gt;
          &lt;sourceDirectory&gt;${project.basedir}\src\main\avro\&lt;/sourceDirectory&gt;
          &lt;outputDirectory&gt;${project.basedir}\src\main\java\&lt;/outputDirectory&gt;
        &lt;/configuration&gt;
  
      &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
    &lt;version&gt;3.7.0&lt;/version&gt;
    &lt;configuration&gt;
      &lt;source&gt;1.8&lt;/source&gt;
      &lt;target&gt;1.8&lt;/target&gt;
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  
  &lt;/plugins&gt;
  &lt;/pluginManagement&gt;
  &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>I tried with my own avro schema definition as well as those from Apache Avro getting started sites. For example I placed the two avsc files in ${project.basedir}\src\main\avro\
  user.avsc file</p>
  
  <pre><code>{"namespace": "Maven_Avro.maven_avro10",
   "type": "record",
   "name": "User",
   "fields": [
       {"name": "name", "type": "string"},
       {"name": "favorite_number",  "type": ["int", "null"]},
       {"name": "favorite_color", "type": ["string", "null"]}
   ]
  }
  </code></pre>
  
  <p>and user1.avsc</p>
  
  <pre><code>{"namespace": "example.avro",
   "type": "record",
   "name": "User1",
   "fields": [
       {"name": "name", "type": "string"},
       {"name": "favorite_number",  "type": ["int", "null"]},
       {"name": "favorite_color", "type": ["string", "null"]}
   ]
  }
  </code></pre>
  
  <p>as one of the post I read before mentioning that namespace was the problem he could not generate the source code, unfortunately that post did not explain how the namespace caused the issue and how to change the namespace in schema solves the problem.
    I have tried update Eclipse project via "maven-> update project...", I also tried to build it outside of Eclipse manually with "mvn generate-sources" or "mvn clean generate-sources", the command line build is all successful, but but just no source code is generated in target directory or any other folders.</p>
  
  <p>Please let me know what I have missed or did wrong so my Eclipse (or command line) mvn build does not generate avro schema java source codes.  thanks in advance.</p>