b3dgs / lionheart-remake

Java remake of Lionheart amiga game
https://lionheart.b3dgs.com
GNU General Public License v3.0
78 stars 7 forks source link

Improve project build and run #315

Closed Ygarr closed 1 year ago

Ygarr commented 2 years ago

TODO

Original comment

cloning cd lionheart-pc mvn install got:

Downloading from jitpack.io: https://jitpack.io/com/b3dgs/lionheart/lionheart-game/1.3.0-SNAPSHOT/lionheart-game-1.3.0-SNAPSHOT.jar
Downloading from jitpack.io: https://jitpack.io/com/b3dgs/lionheart/lionheart-assets/1.3.0-SNAPSHOT/lionheart-assets-1.3.0-SNAPSHOT.jar
Downloading from snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/b3dgs/lionheart/lionheart-game/1.3.0-SNAPSHOT/lionheart-game-1.3.0-SNAPSHOT.jar
Downloading from snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/b3dgs/lionheart/lionheart-assets/1.3.0-SNAPSHOT/lionheart-assets-1.3.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  24.174 s
[INFO] Finished at: 2022-09-17T10:44:36+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project lionheart-pc: Could not resolve dependencies for project com.b3dgs.lionheart:lionheart-pc:jar:1.3.0-SNAPSHOT: The following artifacts could not be resolved: com.b3dgs.lionheart:lionheart-game:jar:1.3.0-SNAPSHOT, com.b3dgs.lionheart:lionheart-assets:jar:1.3.0-SNAPSHOT: Could not find artifact com.b3dgs.lionheart:lionheart-game:jar:1.3.0-SNAPSHOT in jitpack.io (https://jitpack.io) -> [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/DependencyResolutionException
DjThunder commented 2 years ago

This is because there is no snapshot build on repository. Clone parent, assets and game to build pc. I will try to deploy snapshots on next commits.

Ygarr commented 2 years ago

Ive mademvn install` for above mentioned folder and now have success build. Thanks! P.S. Test passing looks mad)

Hope your commits help...

DjThunder commented 2 years ago

Ah yes, current run is a little bit manual.

Here the following tree:

run from data/ java -jar ../lionheart-pc.jar

I will also make it more flexible next time with resources auto detection.