[已解决] 唉,只需要 Project > Clean > Build。使用 Run As > Maven build... 没有。
我正在尝试使用 JavaPoet 根据我创建的注释构建一个枚举,但是我在添加 Maven 依赖项时遇到了麻烦。我成功解析了 log4j2、H2 和 Reflections 依赖项,但无法解析 JavaPoet。
我无法找到任何关于这FATAL ERROR
是什么的答案,感谢任何帮助。我正在使用 Eclipse Neon.3,我的笔记本电脑上没有太多 RAM——只有 4GB。这是我的 Maven 构建输出:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building My Project 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MainClass ---
[INFO] Deleting C:\dev\git\MainClass\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ MainClass---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ MainClass
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 90 source files to C:\dev\git\MainClass\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.252 s
[INFO] Finished at: 2017-07-08T09:54:56-04:00
[INFO] Final Memory: 15M/169M
[INFO] ------------------------------------------------------------------------
FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)
JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): on getting class status [util.c:1285]