Skip to content

Instantly share code, notes, and snippets.

@iamitshri
Created June 6, 2019 03:43
Show Gist options
  • Save iamitshri/5f0a72d986b43de08b7082fdef630df7 to your computer and use it in GitHub Desktop.
Save iamitshri/5f0a72d986b43de08b7082fdef630df7 to your computer and use it in GitHub Desktop.
querydsl support
<!-- This Annotation processor plugin is used by QueryDsl -->
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>src/main/generated</outputDirectory>
<processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
</plugin>
<!--Builder plugin: add more source directories to your project, since
pom.xml only allows one source directory. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/generated</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment