#Maven Import Issue (Don't wanna interrupt convo)
1 messages Β· Page 1 of 1 (latest)
did you run buildtools
do I run it in the project directory?
just in general on your PC
Yes I've run buildtools
?bootstrap
No, it came with a remapped jar but it was missing classes
my pom.xml file is based on that thread
I would send a screenshot but I don't have embed perms (do I have to verify?)
yes
Alright 1 second
This is the problem, I got the dependency but it has an error
And nothing is underlined red inside of the dependency
or quite possible you don't have the remapped jar
thus running the build cycle should give it to you
one of the reasons I don't mess with NMS
I could give that a go
Well I do have the remapped jar that build tools gives you but it does look like it's missing a few classes
like
PacketPlayOutTitle
no harm in running the build cycle, worse that happens is that it errors but at minimum one of the easiest ways to pull in dependencies or also known as priming a project
that isn't what I am talking about, the maven config you have is setup to give you the remapped jar
you should use mojang mappings anyway
(and titles have API these days, don't use packets for those)
however you can't get the remapped jar from a maven config, if you don't prime the project or run the build cycle at least once
try it, see what it does, it should at minimum produce a remapped jar somewhere
at least from what I am reading from the config you have
Alrighty
also yeah but it's a good learning experience
I just got this error
are you certain you ran buildtools with the --remapped parameter ?
here I'll do that
oh I see what might be the problem
remove the repository stuff and remove the spigot-api dependency
the spigot jar will have the api
thus adding the api as a dependency is redundant
That still gives me this error
what does that clean up broken artificats link do?
I don't use intelliJ so not familiar with everything it does
nothing useful in this case, it just reloads the project
should remove the repository stuff completely
unless there is something in there you need
still nothing
wonder if intelliJ is just not looking in maven local
did you confirm if the remapped jar is in your local maven repo?
so it looks like buildtools didn't add them to local maven repo
you can either manually add them to maven local, or you could instead just point maven to where it is at specifically
mvn install:install-file -Dfile=<path-to-file> -DgroupId="group-id" \
-DartifactId="artifact-id" -Dversion="version" -Dpackaging="packaging"
the maven command if you want to manually install it into maven local
wait
i think it did
I just ran buildtools with --remapped
perhaps it will work now
No sir!
nice
alright we figured out the problem π
also now you know ways to resolve it manually too
also, when depending on the server jar, you don't need the api jar
since the api is inside the server jar π
I figured that when I found spigot api inside the dependency, I just forgot to remove it
Also, now I can't find any of the packet classes