Making 2 flavors of a jar
I got 2 folders,
src/core/java/...
and src/bukkit/java/...
I want to setup maven in a way that it will build core first, then use the output as a dependency to build bukkit. The output will be 2 jars12 Replies
⌛
This post has been reserved for your question.
Hey @eren.! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
split your project into 2 modules and include
core
as a dependency of the bukkit
modulei have 0 experience outside adding dependencies so this is the best i could do:
main pom.xml
src/core/pom.xml
says
Module 'Chiroptera-Core' not found
Do the packages math in bots main
pom
and the pom
of core
module?making a multi module project with idea will result in the structure you want
pom.xml in the root folder is a parent pom, which both has core and bukkit modules. bukkit depends on the maven coordinates for core. done
honestly i didnt understand a single word you said
you mean this?
will try
looks fine so far, will post here if something goes wrong
i could already tell from the file size but bukkit doesnt use core correctly
fixed by changing scope to complie
Post Closed
This post has been closed by <@587604022349791274>.