Hallo Ubuntuusers Community, vor kurzen bin ich über die Google-Suche auf ein für mich sehr interessantes Spiel auf GitHub gestoßen. Dieses muss jedoch erst mit Maven erstellt werden, mit welchen ich wiederum zum einen noch nie gearbeitet habe und zum anderen es mit der auf GitHub stehenden Installationsanleitung immer wieder zu Fehlermeldungen kommt. Demnach möchte ich nun hier an dieser Stelle um eure Hilfe bitten.
Das Spiel um welches es geht...
OpenLoco: OpenLoco (https://github.com/mr-tim/openloco)
Auf der o.g. Homepage auf GitHub geht in der Installationsanleitung hervor, dass dieses Project erst mit Maven erstellt werden muss. So das ich den heruntergeladenen Ordner in meinen persönlichen Ordner heruntergeladen habe. Die Ordnerstruktur wäre nun [Persönlicher Ordner] » [OpenLoco] in welchen sich auch die pom.xml befindet. Sobald ich dann im Terminal mit "cd OpenLoco" in den entsprechenden Ordner wechsel und mit "mvn package" versuche dieses Spiel zu kompilieren, kommt es immer wieder zu Fehlermeldungen. Diese sehen wie folgt aus ...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | andreas@thinkpad-l540:~/openloco$ mvn package [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.github.mr-tim:openloco:jar:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 13, column 21 [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] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building openloco 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openloco --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ openloco --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openloco --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /home/andreas/openloco/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ openloco --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ openloco --- [INFO] Surefire report directory: /home/andreas/openloco/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running openloco.rail.TrackLayerTranslationTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.144 sec - in openloco.rail.TrackLayerTranslationTest Running openloco.rail.VehicleSpriteAtlasTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.294 sec <<< FAILURE! - in openloco.rail.VehicleSpriteAtlasTest testSymmtericalVehicle(openloco.rail.VehicleSpriteAtlasTest) Time elapsed: 0.294 sec <<< FAILURE! java.lang.AssertionError: Wrong sprite index for 89 degrees orientation expected:<16> but was:<0> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at openloco.rail.VehicleSpriteAtlasTest.verifySpriteIndexForDirection(VehicleSpriteAtlasTest.java:51) at openloco.rail.VehicleSpriteAtlasTest.testSymmtericalVehicle(VehicleSpriteAtlasTest.java:43) Running openloco.datfiles.DatFileInputStreamTest Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec <<< FAILURE! - in openloco.datfiles.DatFileInputStreamTest checkValidObjectReference(openloco.datfiles.DatFileInputStreamTest) Time elapsed: 0.003 sec <<< FAILURE! org.junit.ComparisonFailure: UseObject reference contains wrong reference expected:<HST2000[ ]> but was:<HST2000[]> at org.junit.Assert.assertEquals(Assert.java:115) at openloco.datfiles.DatFileInputStreamTest.checkValidObjectReference(DatFileInputStreamTest.java:56) Running openloco.routing.RouteNodePositionTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.072 sec - in openloco.routing.RouteNodePositionTest Results : Failed tests: VehicleSpriteAtlasTest.testSymmtericalVehicle:43->verifySpriteIndexForDirection:51 Wrong sprite index for 89 degrees orientation expected:<16> but was:<0> DatFileInputStreamTest.checkValidObjectReference:56 UseObject reference contains wrong reference expected:<HST2000[ ]> but was:<HST2000[]> Tests run: 16, Failures: 2, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.588 s [INFO] Finished at: 2017-04-13T09:14:51+03:00 [INFO] Final Memory: 11M/141M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project openloco: There are test failures. [ERROR] [ERROR] Please refer to /home/andreas/openloco/target/surefire-reports for the individual test results. [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 andreas@thinkpad-l540:~/openloco$ mvn package [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.github.mr-tim:openloco:jar:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 13, column 21 [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] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building openloco 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openloco --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ openloco --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openloco --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /home/andreas/openloco/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ openloco --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ openloco --- [INFO] Surefire report directory: /home/andreas/openloco/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running openloco.rail.TrackLayerTranslationTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.178 sec - in openloco.rail.TrackLayerTranslationTest Running openloco.rail.VehicleSpriteAtlasTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.223 sec <<< FAILURE! - in openloco.rail.VehicleSpriteAtlasTest testSymmtericalVehicle(openloco.rail.VehicleSpriteAtlasTest) Time elapsed: 0.223 sec <<< FAILURE! java.lang.AssertionError: Wrong sprite index for 89 degrees orientation expected:<16> but was:<0> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at openloco.rail.VehicleSpriteAtlasTest.verifySpriteIndexForDirection(VehicleSpriteAtlasTest.java:51) at openloco.rail.VehicleSpriteAtlasTest.testSymmtericalVehicle(VehicleSpriteAtlasTest.java:43) Running openloco.datfiles.DatFileInputStreamTest Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec <<< FAILURE! - in openloco.datfiles.DatFileInputStreamTest checkValidObjectReference(openloco.datfiles.DatFileInputStreamTest) Time elapsed: 0.007 sec <<< FAILURE! org.junit.ComparisonFailure: UseObject reference contains wrong reference expected:<HST2000[ ]> but was:<HST2000[]> at org.junit.Assert.assertEquals(Assert.java:115) at openloco.datfiles.DatFileInputStreamTest.checkValidObjectReference(DatFileInputStreamTest.java:56) Running openloco.routing.RouteNodePositionTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec - in openloco.routing.RouteNodePositionTest Results : Failed tests: VehicleSpriteAtlasTest.testSymmtericalVehicle:43->verifySpriteIndexForDirection:51 Wrong sprite index for 89 degrees orientation expected:<16> but was:<0> DatFileInputStreamTest.checkValidObjectReference:56 UseObject reference contains wrong reference expected:<HST2000[ ]> but was:<HST2000[]> Tests run: 16, Failures: 2, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.349 s [INFO] Finished at: 2017-04-13T09:18:40+03:00 [INFO] Final Memory: 13M/164M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project openloco: There are test failures. [ERROR] [ERROR] Please refer to /home/andreas/openloco/target/surefire-reports for the individual test results. [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 andreas@thinkpad-l540:~/openloco$ mvn package [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.github.mr-tim:openloco:jar:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 13, column 21 [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] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building openloco 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openloco --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ openloco --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openloco --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /home/andreas/openloco/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ openloco --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ openloco --- [INFO] Surefire report directory: /home/andreas/openloco/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running openloco.rail.TrackLayerTranslationTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.153 sec - in openloco.rail.TrackLayerTranslationTest Running openloco.rail.VehicleSpriteAtlasTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.218 sec <<< FAILURE! - in openloco.rail.VehicleSpriteAtlasTest testSymmtericalVehicle(openloco.rail.VehicleSpriteAtlasTest) Time elapsed: 0.217 sec <<< FAILURE! java.lang.AssertionError: Wrong sprite index for 89 degrees orientation expected:<16> but was:<0> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.junit.Assert.assertEquals(Assert.java:555) at openloco.rail.VehicleSpriteAtlasTest.verifySpriteIndexForDirection(VehicleSpriteAtlasTest.java:51) at openloco.rail.VehicleSpriteAtlasTest.testSymmtericalVehicle(VehicleSpriteAtlasTest.java:43) Running openloco.datfiles.DatFileInputStreamTest Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec <<< FAILURE! - in openloco.datfiles.DatFileInputStreamTest checkValidObjectReference(openloco.datfiles.DatFileInputStreamTest) Time elapsed: 0.001 sec <<< FAILURE! org.junit.ComparisonFailure: UseObject reference contains wrong reference expected:<HST2000[ ]> but was:<HST2000[]> at org.junit.Assert.assertEquals(Assert.java:115) at openloco.datfiles.DatFileInputStreamTest.checkValidObjectReference(DatFileInputStreamTest.java:56) Running openloco.routing.RouteNodePositionTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec - in openloco.routing.RouteNodePositionTest Results : Failed tests: VehicleSpriteAtlasTest.testSymmtericalVehicle:43->verifySpriteIndexForDirection:51 Wrong sprite index for 89 degrees orientation expected:<16> but was:<0> DatFileInputStreamTest.checkValidObjectReference:56 UseObject reference contains wrong reference expected:<HST2000[ ]> but was:<HST2000[]> Tests run: 16, Failures: 2, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.380 s [INFO] Finished at: 2017-04-13T09:28:55+03:00 [INFO] Final Memory: 12M/164M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project openloco: There are test failures. [ERROR] [ERROR] Please refer to /home/andreas/openloco/target/surefire-reports for the individual test results. [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 andreas@thinkpad-l540:~/openloco$ mvn package [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-parseable POM /home/andreas/openloco/pom.xml: Duplicated tag: 'build' (position: START_TAG seen ...</plugins>\n </build>\n\n<build>... @44:8) @ line 44, column 8 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project (/home/andreas/openloco/pom.xml) has 1 error [ERROR] Non-parseable POM /home/andreas/openloco/pom.xml: Duplicated tag: 'build' (position: START_TAG seen ...</plugins>\n </build>\n\n<build>... @44:8) @ line 44, column 8 -> [Help 2] [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 [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException |
Diesbezgl. würde ich mich über eine Anleitung / Hilfestellung eurerseits zu diesen o.g. Fehlermeldungen und ferner wie ich dieses Spiel nun erfolgreich kompilieren kann erfreuen und möchte euch dafür schon einmal vorab recht herzlich danken! ☺
Nebenbei ... Ich habe bezgl. Maven auch schon gegoogelt und bin dabei auch auf ein Maven Plugin gestoßen, welches aus einer kompilierten .jar Datei (oder geht das auch direkt ohne den Umweg über die .jar Datei) ein .deb Paket erstellt. Wenn dies auch ohne den Umweg über die .jar Datei möglich wäre, dann stellt sich mir die Frage wie dieses funktioniert bzw. wie dieses zu bewerkstelligen ist?