Skip to content

Instantly share code, notes, and snippets.

@kpgalligan
Created July 19, 2015 15:27
Show Gist options
  • Save kpgalligan/46cff64649348f304cd0 to your computer and use it in GitHub Desktop.
Save kpgalligan/46cff64649348f304cd0 to your computer and use it in GitHub Desktop.
Maven annotation processing config
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
<executions>
<execution>
<id>compile-everything-else</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<!-- Generates Test-Helper-Class into ${project.build.directory}/generated-test-sources/test-annotations WITHOUT compiling it -->
<id>compile-TestHelperClass</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<annotationProcessors>
<annotationProcessor>
com.koenv.ormlite.processor.AnnotationProcessor
</annotationProcessor>
</annotationProcessors>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment