Maven build problems with spring-data-jpa and querydsl

时光总嘲笑我的痴心妄想 提交于 2019-12-05 10:27:26
ILX

Alex, try to define build-helper:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>build-helper-maven-plugin</artifactId>
    <version>1.7</version>
    <executions>
        <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>add-source</goal>
                <goal>add-test-source</goal>
            </goals>
            <configuration>
                <sources>
                    <source>target/generated-sources</source>
                    <source>src/main/java</source>
                </sources>
            </configuration>
        </execution>
    </executions>
</plugin>

Do you get errors or just warnings? You can add the true to reduce the error logging.

This kind of logging is a part of APT, since in the first run before types have been generated, the sources inspection sees references to nonavailable types.

I got many "cannot find symbol" logging (and the processing succeeded), too. It seems to be related with the following issue.

https://github.com/mysema/maven-apt-plugin/issues/2

Fixed by adding the following options.

<logOnlyOnError>true</logOnlyOnError>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!