<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${project.build.directory}/generated-sources/avro/</source> </sources> </configuration> </execution> </executions> </plugin>
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <id>add-test-source</id> <goals> <goal>add-test-source</goal> </goals> <configuration> <sources> <source>${project.basedir}/src/integration-test/java</source> </sources> </configuration> </execution> <execution> <id>add-test-resource</id> <goals> <goal>add-test-resource</goal> </goals> <configuration> <resources> <resource> <directory>${project.basedir}/src/integration-test/resources</directory> </resource> </resources> </configuration> </execution> </executions> </plugin>