The first thing to do is to add the dependency into your pom.xml file. The artifacts are hosted on Maven Central so no additional repositories should be required.
Copy < dependencies >
< dependency >
< groupId >dev.sefiraat</ groupId >
< artifactId >SefiLib</ artifactId >
< version >[VERSION]</ version >
< scope >compile</ scope >
</ dependency >
</ dependencies >
The library needs to be shaded into your plugin's jar.
Copy < build >
< plugins >
< plugin >
< groupId >org.apache.maven.plugins</ groupId >
< artifactId >maven-shade-plugin</ artifactId >
< version >3.3.0</ version >
< configuration >
< relocations >
< relocation >
< pattern >dev.sefiraat.sefilib</ pattern >
< shadedPattern >[YOUR_PACKAGE].sefilib</ shadedPattern >
</ relocation >
</ relocations >
< filters >
< filter >
< artifact >*:*</ artifact >
< excludes >
< exclude >META-INF/*</ exclude >
</ excludes >
</ filter >
</ filters >
</ configuration >
< executions >
< execution >
< phase >package</ phase >
< goals >
< goal >shade</ goal >
</ goals >
</ execution >
</ executions >
</ plugin >
</ plugins >xml
</ build >