出现警告
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.mimhope.jettycode:JettyCode:war:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 14, column 13
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
当package后出现以上警告你就要对maven-compiler-plugin这个插件增加版本信息
例如<version>3.6.0</version>
java类不存在或者找不到符号
并对每个类都进行Recompile
问题解决