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:
JCenter
It 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:check
maven-assembly-plugin
: quickly bundle your project into a JAR file usingmvn package
if you set the propertymain
to your main class:<properties> <main>your.Main</main> </properties>
maven-enforcer-plugin
: Sets the required maven version to3.1.1
maven-notice-plugin
: autogenerates aNOTICE.md
file usingmvn notice:generate
maven-source-plugin
: creates a source JAR usingmvn verify
maven-javadoc-plugin
: creates a javadoc JAR usingmvn verify
maven-gpg-plugin
: signs your JARs before deploying to maven centralmaven-deploy-plugin
andnexus-staging-maven-plugin
: uploads your JARs to maven central usingmvn deploy