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
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
@Snow Kit
nah, different
What command did you run?
git clone https://github.com/oraxen/oraxen.git
then cd oraxen
then mvn clean install
Also it’s gradle
i've tried building it using gradle
Run
gradlew build
insteadDo you have a Java 17 jdk installed?
no
i thought cuz i'm only after the 1.20 version that i would only need java 21
Then install it and check the box in the installer to setup java_home
And restart command prompt
i think it's working now thanks
how did u know i needed to download java 17
read the error
in the screenshot
languageVersion=17
- is this it?Could not find a java installation… etc etc languageVersion=17
yeahalr thanks
next time i will use my eyes better
And “problem while configuring 1_18”
it’s an easy mistake to make, trust me
i have to ask how do u guys know how to do this
r u plugin developers
Ye
mhm
how did y'all learn
learning java, screwing around myself and watching some tutorials
for me anyways
ah so just making random stuff
I first played around with computercraft, did discord bots, eventually made plugins
Just did what I wanted to do and learned along the way
that's cool
i gotta start learning someday
It’s primarily just like critical thinking, failing and reading error messages
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
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
yeah for sure
and then try developing simple plugins
yeah
knowing Java always helps
how do you make that leap from knowing basic java to starting out with plugins
is there some sort of documentation to get started
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
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
show us the full log
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
message.txt
Requested by shodwriter#0
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
ah okay
I also do a bit of iOS development
Although it’s nowhere close to finished and can’t be published to the App Store due to its nature
that looks pretty cool
that’s a weird error
it shouldn’t be doing that
do you know what to do to fix it
It’s either using Java 21 when it shouldn’t be, or you need jdk21 installed
Idk which
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 workedonly 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
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
hmmm how do i fix that
go through every config
remove the stuff that requires the non existent textures
there's like custom armors and stuff
so e.g. here where it says null do i just remove the whole thing
if it says
required
keep itshouldi get rid of the
null
part thono
if it says
required
in any of it (in this instance shift_1)
don't remove any part of itso e.g. here it doesn't say required so should i remove the whole thing
yes
is there a way to just get rid of the custom items altogether