QueryDSL查询类生成插件默认在同包生成同名文件(类名前加Q),如果希望不要在同包下生成,可以通过options配置<querydsl.packageSuffix>.dsl</querydsl.packageSuffix>
其他可配置项在com.querydsl.apt.APTOptions
类中定义。具体配置如下:
<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>src/generated-sources/java</outputDirectory>
<processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
<options>
<querydsl.packageSuffix>.dsl</querydsl.packageSuffix>
</options>
</configuration>
</execution>
</executions>
</plugin>