JacksonHoggard / voodoo2d

👹 2D Java Game Engine built in OpenGL
MIT License
131 stars 50 forks source link

Can't build using maven #12

Closed sanj0 closed 4 years ago

sanj0 commented 4 years ago

Describe the bug Can't build the project using maven and the /pom.xml file

To Reproduce Steps to reproduce the behavior:

  1. clone the project
  2. run 'mvn clean install'

Expected behavior Maven should build it without errors

Screenshots

Bildschirmfoto 2020-05-31 um 17 06 18

Desktop

Additional context

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-shade-plugin is missing. @ line 146, column 21
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. @ 
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. @ 
[ERROR] 'dependencies.dependency.version' for org.lwjgl:lwjgl:jar:${lwjgl.natives} is missing. @ line 94, column 21
[ERROR] 'dependencies.dependency.version' for org.lwjgl:lwjgl-assimp:jar:${lwjgl.natives} is missing. @ line 99, column 21
[ERROR] 'dependencies.dependency.version' for org.lwjgl:lwjgl-glfw:jar:${lwjgl.natives} is missing. @ line 104, column 21
[ERROR] 'dependencies.dependency.version' for org.lwjgl:lwjgl-openal:jar:${lwjgl.natives} is missing. @ line 109, column 21
[ERROR] 'dependencies.dependency.version' for org.lwjgl:lwjgl-opengl:jar:${lwjgl.natives} is missing. @ line 114, column 21
[ERROR] 'dependencies.dependency.version' for org.lwjgl:lwjgl-stb:jar:${lwjgl.natives} is missing. @ line 119, column 21
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.github.crembluray:voodoo2d:1.0-SNAPSHOT (/Users/edgelord/git/voodoo2d/pom.xml) has 6 errors
[ERROR]     'dependencies.dependency.version' for org.lwjgl:lwjgl:jar:${lwjgl.natives} is missing. @ line 94, column 21
[ERROR]     'dependencies.dependency.version' for org.lwjgl:lwjgl-assimp:jar:${lwjgl.natives} is missing. @ line 99, column 21
[ERROR]     'dependencies.dependency.version' for org.lwjgl:lwjgl-glfw:jar:${lwjgl.natives} is missing. @ line 104, column 21
[ERROR]     'dependencies.dependency.version' for org.lwjgl:lwjgl-openal:jar:${lwjgl.natives} is missing. @ line 109, column 21
[ERROR]     'dependencies.dependency.version' for org.lwjgl:lwjgl-opengl:jar:${lwjgl.natives} is missing. @ line 114, column 21
[ERROR]     'dependencies.dependency.version' for org.lwjgl:lwjgl-stb:jar:${lwjgl.natives} is missing. @ line 119, column 21
[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/ProjectBuildingException
JacksonHoggard commented 4 years ago

Use IntelliJ to build with maven. Should work fine then.

sanj0 commented 4 years ago
Bildschirmfoto 2020-06-06 um 14 59 27
JacksonHoggard commented 4 years ago

Looks like some LWJGL library isn't loading correctly. Did you follow the instruction here? Also it looks like you are using JDK 10 when you should be using JDK 11 for this project. The project uses AdoptOpenJdk so I would recommend using this one.

JacksonHoggard commented 4 years ago

Closing this issue due to it not being an issue