Compiling a plugin that requires dependencies

I'm trying to compile the oraxen plugin from its github by cloning the repository and then trying to build it but i keep getting a build failure error. i realise now that the plugin requires dependencies and i think this is what is causing the error; does anyone know how to build a plugin that requires dependencies?
62 Replies
Admincraft Meta
Admincraft Meta7mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by shodwriter#0
Shodwriter
ShodwriterOP7mo ago
@Snow Kit
Shodwriter
ShodwriterOP7mo ago
nah, different
Shodwriter
ShodwriterOP7mo ago
No description
Snow Kit
Snow Kit7mo ago
What command did you run?
Shodwriter
ShodwriterOP7mo ago
git clone https://github.com/oraxen/oraxen.git then cd oraxen then mvn clean install
Snow Kit
Snow Kit7mo ago
Also it’s gradle
Shodwriter
ShodwriterOP7mo ago
i've tried building it using gradle
Snow Kit
Snow Kit7mo ago
Run gradlew build instead
Shodwriter
ShodwriterOP7mo ago
No description
Snow Kit
Snow Kit7mo ago
Do you have a Java 17 jdk installed?
Shodwriter
ShodwriterOP7mo ago
no i thought cuz i'm only after the 1.20 version that i would only need java 21
Snow Kit
Snow Kit7mo ago
Then install it and check the box in the installer to setup java_home And restart command prompt
Shodwriter
ShodwriterOP7mo ago
i think it's working now thanks how did u know i needed to download java 17
Skullians
Skullians7mo ago
read the error in the screenshot
Shodwriter
ShodwriterOP7mo ago
languageVersion=17 - is this it?
Skullians
Skullians7mo ago
Could not find a java installation… etc etc languageVersion=17 yeah
Shodwriter
ShodwriterOP7mo ago
alr thanks next time i will use my eyes better
Snow Kit
Snow Kit7mo ago
And “problem while configuring 1_18”
Skullians
Skullians7mo ago
it’s an easy mistake to make, trust me
Shodwriter
ShodwriterOP7mo ago
i have to ask how do u guys know how to do this r u plugin developers
Snow Kit
Snow Kit7mo ago
Ye
Skullians
Skullians7mo ago
mhm
Shodwriter
ShodwriterOP7mo ago
how did y'all learn
Skullians
Skullians7mo ago
learning java, screwing around myself and watching some tutorials for me anyways
Shodwriter
ShodwriterOP7mo ago
ah so just making random stuff
Snow Kit
Snow Kit7mo ago
I first played around with computercraft, did discord bots, eventually made plugins Just did what I wanted to do and learned along the way
Shodwriter
ShodwriterOP7mo ago
that's cool i gotta start learning someday
Snow Kit
Snow Kit7mo ago
It’s primarily just like critical thinking, failing and reading error messages
Skullians
Skullians7mo ago
it’s a really nice thing to know, even if it’s just basic plugin development Knowing how to build plugins / mods, making basic plugins for basic stuff you might need is a very good tool if you are a server owner too
Shodwriter
ShodwriterOP7mo ago
yeah the more i make servers the more i want to learn how do you reckon the best way is to actually learn the basics of java first
Skullians
Skullians7mo ago
yeah for sure
Shodwriter
ShodwriterOP7mo ago
and then try developing simple plugins
Skullians
Skullians7mo ago
yeah knowing Java always helps
Shodwriter
ShodwriterOP7mo ago
how do you make that leap from knowing basic java to starting out with plugins is there some sort of documentation to get started
Skullians
Skullians7mo ago
hold on https://www.spigotmc.org/wiki/spigot-plugin-development/ is decent Kody Simpson’s YouTube guide is good, but with any tutorial always fuck around with stuff rather than strictly following what the tutorials do
Shodwriter
ShodwriterOP7mo ago
so like only use the tutorial if u r genuinely stuck on a bit and don't know what to do oh wait the build failed
Shodwriter
ShodwriterOP7mo ago
No description
Skullians
Skullians7mo ago
show us the full log
Admincraft Meta
Admincraft Meta7mo ago
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
Requested by shodwriter#0
Skullians
Skullians7mo ago
well not necessarily. Use the tutorials, but use what you learn from the tutorials for your own things. Mess around, see what you can make
Shodwriter
ShodwriterOP7mo ago
ah okay
Snow Kit
Snow Kit7mo ago
I also do a bit of iOS development
Snow Kit
Snow Kit7mo ago
Although it’s nowhere close to finished and can’t be published to the App Store due to its nature
Shodwriter
ShodwriterOP7mo ago
that looks pretty cool
Skullians
Skullians7mo ago
that’s a weird error it shouldn’t be doing that
Shodwriter
ShodwriterOP7mo ago
do you know what to do to fix it
Snow Kit
Snow Kit7mo ago
It’s either using Java 21 when it shouldn’t be, or you need jdk21 installed Idk which
Shodwriter
ShodwriterOP7mo ago
I have Java 21 installed or do i need to set 2 java home variables okay i deleted all the version files except v1_20_R4 and despite regenerating all the version files trying to compile the plugin again worked
Shodwriter
ShodwriterOP7mo ago
only problem now is that oraxen makes every texture a placeholder image so i can't do anything and automatically kicks me from the server https://mclo.gs/Eymnf3I
Skullians
Skullians7mo ago
Compiled Oraxen versions don’t come with actual textures, even though their configs are configured with the idea that they are so like everything breaks as the configs try find non existing textures
Shodwriter
ShodwriterOP7mo ago
hmmm how do i fix that
Skullians
Skullians7mo ago
go through every config remove the stuff that requires the non existent textures there's like custom armors and stuff
Shodwriter
ShodwriterOP7mo ago
so e.g. here where it says null do i just remove the whole thing
No description
Skullians
Skullians7mo ago
if it says required keep it
Shodwriter
ShodwriterOP7mo ago
shouldi get rid of the null part tho
Skullians
Skullians7mo ago
no if it says required in any of it (in this instance shift_1) don't remove any part of it
Shodwriter
ShodwriterOP7mo ago
so e.g. here it doesn't say required so should i remove the whole thing
No description
Skullians
Skullians7mo ago
yes
Shodwriter
ShodwriterOP7mo ago
is there a way to just get rid of the custom items altogether

Did you find this page helpful?