Advertisement
Martiii11

Error compiling with Maven

Apr 13th, 2017
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.91 KB | None | 0 0
  1. "C:\Program Files\Java\jdk1.8.0_77\bin\java" -Dmaven.multiModuleProjectDirectory=C:\Users\Marti\Documents\MCProjects\MyProject "-Dmaven.home=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2017.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2017.1\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2017.1\lib\idea_rt.jar=56134:C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2017.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2017.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.1.1 package
  2. [INFO] Scanning for projects...
  3. [WARNING]
  4. [WARNING] Some problems were encountered while building the effective model for cf.magsoo:MyProject:jar:1.0-SNAPSHOT
  5. [WARNING] 'dependencies.dependency.systemPath' for org.bukkit:craftbukkit:jar should not point at files within the project directory, ${project.basedir}/libs/craftbukkit-1.11.2-R0.1-SNAPSHOT.jar will be unresolvable by dependent projects @ line 32, column 25
  6. [WARNING]
  7. [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  8. [WARNING]
  9. [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  10. [WARNING]
  11. [INFO]                                                                        
  12. [INFO] ------------------------------------------------------------------------
  13. [INFO] Building MyProject 1.0-SNAPSHOT
  14. [INFO] ------------------------------------------------------------------------
  15. [INFO]
  16. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ MyProject ---
  17. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
  18. [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  19. [INFO] Copying 2 resources to .
  20. [INFO]
  21. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ MyProject ---
  22. [INFO] Changes detected - recompiling the module!
  23. [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
  24. [INFO] Compiling 15 source files to C:\Users\Marti\Documents\MCProjects\MyProject\target\classes
  25. [INFO] -------------------------------------------------------------
  26. [ERROR] COMPILATION ERROR :
  27. [INFO] -------------------------------------------------------------
  28. [ERROR] /C:/Users/Marti/Documents/MCProjects/MyProject/src/main/java/net/MyProject/MyProject/tablist/TabListManager.java:[32,45] cannot access net.minecraft.server.v1_11_R1.PacketPlayOutPlayerInfo.PlayerInfoData
  29.   bad class file: C:\Users\Marti\Documents\MCProjects\MyProject\libs\craftbukkit-1.11.2-R0.1-SNAPSHOT.jar(net/minecraft/server/v1_11_R1/PacketPlayOutPlayerInfo$PlayerInfoData.class)
  30.     bad RuntimeInvisibleParameterAnnotations attribute: PlayerInfoData(com.mojang.authlib.GameProfile,int,net.minecraft.server.v1_11_R1.EnumGamemode,net.minecraft.server.v1_11_R1.IChatBaseComponent)
  31.     Please remove or make sure it appears in the correct subdirectory of the classpath.
  32. [INFO] 1 error
  33. [INFO] -------------------------------------------------------------
  34. [INFO] ------------------------------------------------------------------------
  35. [INFO] BUILD FAILURE
  36. [INFO] ------------------------------------------------------------------------
  37. [INFO] Total time: 7.246 s
  38. [INFO] Finished at: 2017-04-13T11:06:49+02:00
  39. [INFO] Final Memory: 17M/172M
  40. [INFO] ------------------------------------------------------------------------
  41. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project MyProject: Compilation failure
  42. [ERROR] /C:/Users/Marti/Documents/MCProjects/MyProject/src/main/java/net/MyProject/MyProject/tablist/TabListManager.java:[32,45] cannot access net.minecraft.server.v1_11_R1.PacketPlayOutPlayerInfo.PlayerInfoData
  43. [ERROR] bad class file: C:\Users\Marti\Documents\MCProjects\MyProject\libs\craftbukkit-1.11.2-R0.1-SNAPSHOT.jar(net/minecraft/server/v1_11_R1/PacketPlayOutPlayerInfo$PlayerInfoData.class)
  44. [ERROR] bad RuntimeInvisibleParameterAnnotations attribute: PlayerInfoData(com.mojang.authlib.GameProfile,int,net.minecraft.server.v1_11_R1.EnumGamemode,net.minecraft.server.v1_11_R1.IChatBaseComponent)
  45. [ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
  46. [ERROR] -> [Help 1]
  47. [ERROR]
  48. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  49. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  50. [ERROR]
  51. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  52. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  53.  
  54. Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement