Maven APT plugin
Java
Latest commit b60bb8e Jul 7, 2016 @Shredder121 Shredder121 committed on GitHub Merge pull request #49 from cwiejack/master
Add ability to add additional source and test-source folders

README.md

apt-maven-plugin

apt-maven-plugin provides Maven integration of the Java 6 APT functionality.

Build Status

The supported goals are

process - to process main sources
test-process - to process test sources

Here is an example of a configuration

<plugin>
    <groupId>com.mysema.maven</groupId>
    <artifactId>apt-maven-plugin</artifactId>
    <version>1.1.3</version>
    <executions>
        <execution>
            <goals>
                <goal>process</goal>
            </goals>
            <configuration>
                <outputDirectory>target/generated-sources/java</outputDirectory>
                <processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
            </configuration>
        </execution>
    </executions>
</plugin>

Here is an example for usage with the m2e plugin https://github.com/querydsl/apt-maven-plugin/wiki/m2e-usage

If you're using AspectJ to introduce artifacts into classes (fields, methods or annotations), then apt-maven-plugin will not work properly and classpath inspecting tools need to be used, such as GenericExporter, if you use Querydsl.