[已解决]感叹,只好进行Project> Clean> Build。使用运行方式> Maven构建...没有它。Maven构建成功,但缺少依赖关系。 JDWP退出错误
我想使用JavaPoet来创建基于我创建的注释的枚举,但我在添加Maven依赖项时遇到问题。我成功解析了log4j2,H2和Reflections依赖项,但无法解析JavaPoet。
我无法找到这FATAL ERROR
是什么答案,任何帮助表示赞赏。我使用的是Eclipse Neon.3,我的笔记本电脑没有太多内存 - 只有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]