#Help running project

74 messages · Page 1 of 1 (latest)

spark vapor
swift bobcatBOT
#

This post has been reserved for your question.

Hey @spark vapor! Please use /close or the Close Post button 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.

tame agate
#

What exactly do you have issues with?

spark vapor
#

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

tame agate
#

and you might need this in your pom.xml:

        <dependency>
            <groupId>com.github.skjolber.3d-bin-container-packing</groupId>
            <artifactId>visualizer-api</artifactId>
        </dependency>
spark vapor
#

so i just copy that class to my project and add this into my pom and that's it?

tame agate
#

I don't know that project

spark vapor
#

what project?

tame agate
#

3d-bin-container-packing

spark vapor
#

oof.. i understand

tame agate
#

but that file might be helpful in understandinghow to work with it

spark vapor
#

so i tried opening the project visualizer-packaging but pom's got some errors

tame agate
#

I guess the test artifact isn't published to the repository

#

you probably don't need the whole project

spark vapor
#

well... i managed to fix some imports...

#

i'm down to this one..

#

my pom is fine tho

#

i am confused

tame agate
#

Did you reload the Maven project?

spark vapor
#

yep

tame agate
#

oh

#

it seems like that class doesn't exist in the 3.x version

spark vapor
#

this is so frustrating... why is someone posting something broken 😦

tame agate
#

?

#

it isn't broken, it's just from a different version

spark vapor
#

ok so what version is it?

tame agate
#

looks like 4.whatever

#

which may not be released yet

spark vapor
#

damn...

#

can i import the package locally and not from central repo?

tame agate
#

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

spark vapor
#

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..
tame agate
#

Did you run it in the root directory of the cloned project?

#

like you'd need to build the whole project

spark vapor
#

misunderstood which root dir

tame agate
#

not just the extreme-points module

spark vapor
#

running

tame agate
#

but alternatively, you can also use 3.0.9

#

and look at the repository and the examples there

spark vapor
tame agate
#

seems like some test failed

#

I don't recommend doing that but it would be possible to use -DskipTests

spark vapor
#

alright

#

so now how do i use the module?

tame agate
#

just change the version

#

to 4.0.0-SNAPSHOT

#

but this will only work on your computer

spark vapor
#

well, i mean the module project builds fine now

#

so i tried running visualizationTest...

tame agate
#

you can also take a look at VisualizationTest with the 3.0.9 version

spark vapor
tame agate
#

yeah, that test is marked as disabled

spark vapor
#

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).

tame agate
#

I think that's for contributing to the repository but idk

spark vapor
#

it should've made this file

#

and it did but...

tame agate
#

I don't know that project ¯_(ツ)_/¯

spark vapor
#

heyooo it worked

#

now i gotta figure how to make this into an app

tame agate
#

if you really want to use it, you might want to use a version that's actually released

spark vapor
#

thanks a lot for all the help man 🙂 you're a hero

swift bobcatBOT