Hey so I am trying to use this package and its features. My java/Intellij knowledge is at sea level so I need help from someone guiding me through it please. Thanks
https://github.com/skjolber/3d-bin-container-packing
#Help running project
74 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @spark vapor! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
What exactly do you have issues with?
so, the packaging works fine as far as i can tell
but i'm stumped on how to use the visualiser mentioned there
from the github part that is mentioning it, i understand there's a separate project (local web app) that takes in a json generated by the packaging project
but i'm lost
and you might need this in your pom.xml:
<dependency>
<groupId>com.github.skjolber.3d-bin-container-packing</groupId>
<artifactId>visualizer-api</artifactId>
</dependency>
so i just copy that class to my project and add this into my pom and that's it?
I don't know that project
what project?
3d-bin-container-packing
oof.. i understand
but that file might be helpful in understandinghow to work with it
I guess the test artifact isn't published to the repository
you probably don't need the whole project
well... i managed to fix some imports...
i'm down to this one..
my pom is fine tho
and the class is there.... https://github.com/skjolber/3d-bin-container-packing/blob/master/extreme-points/src/main/java/com/github/skjolber/packing/ep/points3d/SimplePoint3D.java
i am confused
Did you reload the Maven project?
yep
oh
it seems like that class doesn't exist in the 3.x version
this is so frustrating... why is someone posting something broken 😦
ok so what version is it?
if you want to find everything from the 3.x version, see https://github.com/skjolber/3d-bin-container-packing/tree/3.x
you could get the current 4.snapshot version by building it yourself, yeah
essentially clone the thing and run mvn install in the root directory
ok let me see
[INFO] Scanning for projects...
[INFO]
[INFO] ----< com.github.skjolber.3d-bin-container-packing:extreme-points >-----
[INFO] Building extreme-points 4.0.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.github.skjolber.3d-bin-container-packing:api:jar:4.0.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.github.skjolber.3d-bin-container-packing:test:jar:4.0.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.270 s
[INFO] Finished at: 2023-10-30T23:38:01+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project extreme-points: Could not resolve dependencies for project com.github.skjolber.3d-bin-container-packing:extreme-points:jar:4.0.0-SNAPSHOT: The following artifacts could not be resolved: com.github.skjolber.3d-bin-container-packing:api:jar:4.0.0-SNAPSHOT (absent), com.github.skjolber.3d-bin-container-packing:test:jar:4.0.0-SNAPSHOT (absent): com.github.skjolber.3d-bin-container-packing:api:jar:4.0.0-SNAPSHOT was not found in https://repo1.maven.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of mavenCentral has elapsed or updates are forced -> [Help 1]
``` this is killing me..
Did you run it in the root directory of the cloned project?
like you'd need to build the whole project
misunderstood which root dir
not just the extreme-points module
running
but alternatively, you can also use 3.0.9
and look at the repository and the examples there
seems like some test failed
I don't recommend doing that but it would be possible to use -DskipTests
well, i mean the module project builds fine now
so i tried running visualizationTest...
you can also take a look at VisualizationTest with the 3.0.9 version
yeah, that test is marked as disabled
so from what it said on github ```To use the visualizer during development, make your unit tests write directly to a file in the project (see VisualizationTest example).
I think that's for contributing to the repository but idk
I don't know that project ¯_(ツ)_/¯
if you really want to use it, you might want to use a version that's actually released
thanks a lot for all the help man 🙂 you're a hero
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.