Parent pom for easy packaging and deployment to maven central
In order to use this parent for your maven project, add the following to your pom.xml (replace VERSION with the version in ):
<parent>
<groupId>io.github.jdiscordbots</groupId>
<artifactId>jdiscordbots-parent</artifactId>
<version>VERSION</version>
</parent>This parent adds the following repositories:
JCenterIt adds the following plugins and configurations:maven-compiler-plugin: sets the java version to 8spotbugs-maven-plugin: allows you to analyze your project usingmvn spotbugs:checkmaven-assembly-plugin: quickly bundle your project into a JAR file usingmvn packageif you set the propertymainto your main class:<properties> <main>your.Main</main> </properties>
maven-enforcer-plugin: Sets the required maven version to3.1.1maven-notice-plugin: autogenerates aNOTICE.mdfile usingmvn notice:generatemaven-source-plugin: creates a source JAR usingmvn verifymaven-javadoc-plugin: creates a javadoc JAR usingmvn verifymaven-gpg-plugin: signs your JARs before deploying to maven centralmaven-deploy-pluginandnexus-staging-maven-plugin: uploads your JARs to maven central usingmvn deploy