Maven没有解决apt-maven-plugin问题

时间:2017-03-09 06:25:23

标签: java maven

我在我的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>

0 个答案:

没有答案