Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Springboot 2.3.5 环境下报 java: java.lang.IllegalArgumentException #96

Closed
sinowo opened this issue Jan 4, 2021 · 4 comments
Closed
Assignees

Comments

@sinowo
Copy link

sinowo commented Jan 4, 2021

Executing pre-compile tasks...
Loading Ant configuration...
Running Ant tasks...
Too many modules require recompilation, forcing full project rebuild
Cleaning output directories...
Running 'before' tasks
Checking sources
Copying resources... [SpringAvue]
Parsing java... [SpringAvue]
java: java.lang.IllegalArgumentException
java: java.lang.IllegalArgumentException
javac 1.8.0_261 was used to compile java sources
Finished, saving caches...
Executing post-compile tasks...
Loading Ant configuration...
Running Ant tasks...
Synchronizing output directories...
2021/1/4 下午2:16 - Build completed with 2 errors and 0 warnings in 19 sec, 239 ms

---- 删除objsql-springboot库引用后正常跑起(JDK8.0)

@catchex
Copy link
Member

catchex commented Jan 4, 2021

你的IntelliJ IDEA 是2020.04 吧。之前我也遇到过这个问题,是IntelliJ 有个Bug
你增加配置:-Djps.track.ap.dependencies=false
IntelliJ Bug: https://youtrack.jetbrains.com/issue/IDEA-256707

原文:

Eugene Zhuravlev commented 8 Dec 2020 20:00
As a quick workaround (see related issue IDEA-250718 for details and explanations) you can use the flag

-Djps.track.ap.dependencies=false

which should be added to File | Settings | Build, Execution, Deployment | Compiler | Build process VM options field.
This will disable collection of dependencies specified by an annotation processor when Filer methods are called, but at the same time the unwrapped JavacProcessingEnvironment instance will be passed to processors.

image

@catchex
Copy link
Member

catchex commented Jan 4, 2021

你按上述配置就可以了。如果有其它问题,请联系我,如果已经解决,请关闭issue,非常感谢您的使用

@catchex catchex self-assigned this Jan 4, 2021
@sinowo
Copy link
Author

sinowo commented Jan 4, 2021

偿试过加入 -Djps.track.ap.dependencies=false
但仍然不行。

@catchex
Copy link
Member

catchex commented Jan 4, 2021

你的IntelliJ 版本多少?可以加我微信:braisdom,我远程帮你看一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants