avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinicius Carvalho <viniciusccarva...@gmail.com>
Subject Maven plugin issues with sourceDirectory
Date Wed, 24 Aug 2016 22:59:36 GMT
Hi, I'm trying to set the plugin (tried 1.7.7 and 1.8.1) to change the
location of the avsc files:

<plugin>
   <groupId>org.apache.avro</groupId>
   <artifactId>avro-maven-plugin</artifactId>
   <version>1.8.1</version>
   <executions>
      <execution>
         <phase>generate-sources</phase>
         <goals>
            <goal>schema</goal>
         </goals>
         <configuration>
            <testSourceDirectory>${project.basedir}/src/test/resources/</testSourceDirectory>
            <sourceDirectory>${project.basedir}/src/main/resources/</sourceDirectory>
         </configuration>
      </execution>
   </executions>
</plugin>

But when I run it I get an error:

neither sourceDirectory:
/Users/vcarvalho/projects/java/sandbox/expression-demo/src/main/avro or
testSourceDirectory:
/Users/vcarvalho/projects/java/sandbox/expression-demo/src/test/avro are
directories

And from debugging maven output

<configuration>
  <createSetters default-value="true"/>
  <fieldVisibility default-value="PUBLIC_DEPRECATED"/>
  <outputDirectory
default-value="${project.build.directory}/generated-sources/avro">${outputDirectory}</outputDirectory>
  <project default-value="${project}"/>
  <sourceDirectory
default-value="${basedir}/src/main/avro">${sourceDirectory}</sourceDirectory>
  <stringType>${stringType}</stringType>
  <templateDirectory>${templateDirectory}</templateDirectory>
  <testOutputDirectory
default-value="${project.build.directory}/generated-test-sources/avro">${outputDirectory}</testOutputDirectory>
  <testSourceDirectory
default-value="${basedir}/src/test/avro">${sourceDirectory}</testSourceDirectory>
</configuration>

Seems that the plugin is just ignoring anything that is set to configure
its source directories.

Am I missing something here?

Regards

Mime
View raw message