我该如何解决,我的项​​目找不到API jar?

时间:2019-03-23 03:48:58

标签: maven bukkit

我正在尝试导出我的bukkit插件,该即时消息与我制作的API一起使用,但似乎找不到我的api jar ...

我曾经尝试过移动文件,将其添加为库,对其进行编辑等等!

如果有人可以帮忙,请告诉我有什么问题,如果您也需要我的话,我可以分享一些代码,但它只是一个基本的插件,无法找到API jar ...

"C:\Program Files\Java\jdk1.8.0_202\bin\java.exe" "-Dmaven.multiModuleProjectDirectory=C:\Users\jejoj\Coding\Spigot Plugins\TestPlugin 1.8.9" "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.5\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.5\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.5\lib\idea_rt.jar=51351:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.5\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.5\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2018.3.5 clean package
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building TestPlugin 1.8.9 TestPlugin 1.8.9
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ bukkit ---
[INFO] Deleting C:\Users\*NAME*\Coding\Spigot Plugins\TestPlugin 1.8.9\target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bukkit ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ bukkit ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\*NAME*\Coding\Spigot Plugins\TestPlugin 1.8.9\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/*NAME*/Coding/Spigot Plugins/TestPlugin 1.8.9/src/main/java/mrnitrofish/testplugin/CorePlugin.java:[3,31] package mrnitrofish.MessagesAPI does not exist
[ERROR] /C:/Users/*NAME*/Coding/Spigot Plugins/TestPlugin 1.8.9/src/main/java/mrnitrofish/testplugin/CorePlugin.java:[13,13] cannot find symbol
  symbol:   class MessagesAPI
  location: class mrnitrofish.testplugin.CorePlugin
[ERROR] /C:/Users/*NAME*/Coding/Spigot Plugins/TestPlugin 1.8.9/src/main/java/mrnitrofish/testplugin/CorePlugin.java:[13,32] cannot find symbol
  symbol:   class MessagesAPI
  location: class mrnitrofish.testplugin.CorePlugin
[INFO] 3 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.625 s
[INFO] Finished at: 2019-03-22T23:42:58-04:00
[INFO] Final Memory: 15M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project bukkit: Compilation failure: Compilation failure:
[ERROR] /C:/Users/*NAME*/Coding/Spigot Plugins/TestPlugin 1.8.9/src/main/java/mrnitrofish/testplugin/CorePlugin.java:[3,31] package mrnitrofish.MessagesAPI does not exist
[ERROR] /C:/Users/*NAME*/Coding/Spigot Plugins/TestPlugin 1.8.9/src/main/java/mrnitrofish/testplugin/CorePlugin.java:[13,13] cannot find symbol
[ERROR] symbol:   class MessagesAPI
[ERROR] location: class mrnitrofish.testplugin.CorePlugin
[ERROR] /C:/Users/*NAME*/Coding/Spigot Plugins/TestPlugin 1.8.9/src/main/java/mrnitrofish/testplugin/CorePlugin.java:[13,32] cannot find symbol
[ERROR] symbol:   class MessagesAPI
[ERROR] location: class mrnitrofish.testplugin.CorePlugin
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Picked up _JAVA_OPTIONS: -Xmx2G

Process finished with exit code 1

期望它可以工作:P

0 个答案:

没有答案