我在我的pom.xml中添加了一个apt-maven-plugin,但maven向我显示了一条声明“此处不允许使用Element其他源根目录”。
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/annotations</outputDirectory>
<processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
<additionalSourceRoots>
<additionalSourceRoot>target/generated-sources/annotations</additionalSourceRoot>
</additionalSourceRoots>
</configuration>
</execution>
</executions>
</plugin>