Skip to content

Commit

Permalink
AVRO-3877: [doc] fix wrong configuration for avro-maven-plugin in jav…
Browse files Browse the repository at this point in the history
…a example (#2530)
  • Loading branch information
eubnara authored Sep 30, 2023
1 parent 81f1759 commit 69679cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ As well as the Avro Maven plugin (for performing code generation):
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<version>{{< avro_version >}}</version>
<configuration>
<sourceDirectory>${project.basedir}/src/main/avro/</sourceDirectory>
<outputDirectory>${project.basedir}/src/main/java/</outputDirectory>
</configuration>
<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>
Expand Down
8 changes: 4 additions & 4 deletions doc/examples/java-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<version>${avro.version}</version>
<configuration>
<sourceDirectory>${project.basedir}/../</sourceDirectory>
<outputDirectory>${project.basedir}/src/main/java/</outputDirectory>
</configuration>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>schema</goal>
</goals>
<configuration>
<sourceDirectory>${project.basedir}/../</sourceDirectory>
<outputDirectory>${project.basedir}/src/main/java/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Expand Down

0 comments on commit 69679cb

Please sign in to comment.