From 547fe2fc0678bd7fd0b073b4dca15e660baac387 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 7 Oct 2018 11:01:47 +0100 Subject: [PATCH 1/4] Disable the maven-deploy-plugin --- pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pom.xml b/pom.xml index 5a3f52f..a75e857 100644 --- a/pom.xml +++ b/pom.xml @@ -39,6 +39,7 @@ 3.0.1 3.0.1 1.6 + 3.0.0-M1 1.6.8 @@ -111,6 +112,16 @@ + + org.apache.maven.plugins + maven-deploy-plugin + ${maven-deploy-plugin.version} + + + true + + + org.sonatype.plugins nexus-staging-maven-plugin From 2c6c17a5ee801abd536ae411e2ebfd62e2efd7ba Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 7 Oct 2018 11:02:20 +0100 Subject: [PATCH 2/4] Update README and convert to org-mode format --- README.md | 43 ----------------------------- README.org | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 43 deletions(-) delete mode 100644 README.md create mode 100644 README.org diff --git a/README.md b/README.md deleted file mode 100644 index 9c74265..0000000 --- a/README.md +++ /dev/null @@ -1,43 +0,0 @@ -KEMITIX-PARENT -============== - -A parent POM for my own personal projects. - -[![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/https/oss.sonatype.org/net.kemitix/kemitix-parent.svg?style=for-the-badge)](https://oss.sonatype.org/content/repositories/releases/net/kemitix/kemitix-parent/) -[![Maven Central](https://img.shields.io/maven-central/v/net.kemitix/kemitix-parent.svg?style=for-the-badge)](https://search.maven.org/#search|ga|1|g%3A"net.kemitix"%20AND%20a%3A"kemitix-parent") - -### Usage - -```xml - - - net.kemitix - kemitix-parent - RELEASE - -``` - -### Contents - -The POM defines the following items: - -* `issueManagement` -* `scm` -* `url` -* `inceptionYear` -* `licenses` -* `developers` -The POM sets the following properties: - -* `project.reporting.outputEncoding` as `UTF-8` -* `java.version` as `1.8` - -### Profile `release` - -#### GPG Artifact Signing - -Artifacts will be GPG signed during the `package` phase when the `release` profile is enabled. - -#### Distribution Management - -The Nexus Sonatype repositories are declared within `distributionManagement` when the `release` profile is enableds. diff --git a/README.org b/README.org new file mode 100644 index 0000000..d66411f --- /dev/null +++ b/README.org @@ -0,0 +1,80 @@ +* KEMITIX-PARENT + +** A parent POM for my own personal projects. + + [[https://oss.sonatype.org/content/repositories/releases/net/kemitix/kemitix-parent/][[[https://img.shields.io/nexus/r/https/oss.sonatype.org/net.kemitix/kemitix-parent.svg?style=for-the-badge]]]] + [[https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22net.kemitix%22%20AND%20a%3A%22kemitix-parent%22][[[https://img.shields.io/maven-central/v/net.kemitix/kemitix-parent.svg?style=for-the-badge]]]] + +** Usage + + Use as a parent pom. + + #+BEGIN_SRC xml + + net.kemitix + kemitix-parent + RELEASE + + #+END_SRC + +** Contents + + The POM defines the following items: + +- =issueManagement= +- =scm= +- =url= +- =inceptionYear= +- =licenses= +- =developers= + + In your child pom you should override, at least, the =issueManagement=, =scm=, + =url= and =inceptionYear= sections. + +** Properties + + The POM sets the following properties: + +- =project.reporting.outputEncoding= as =UTF-8= +- =java.version= as =1.8= + +** Profile =release= + + The =release= profile is for use when deploying your project. + + It configures the following plugins: + +**** =maven-javadoc-plugin= + + Executes the =jar= goal during the =package= phase. + +**** =maven-source-plugin= + + Executes the =jar-no-fork= goal during the =package= phase. + +**** =maven-gpg-plugin= + + Executes the =sign= goal during the =package= phase. + + The default =gpg= key will be used with the password defined in the + =gpg.passphrase= property. + +**** =maven-deploy-plugin= + + This plugin is configured to *not* run. Deployment, uploading of artifacts, + is handled by the =nexus-staging-maven-plugin=. + +**** =nexus-staging-maven-plugin= + + Executes the default goals. + + Uploads artifacts to the Sonatype Nexus server, https://oss.sonatype.org/, + leaving the artifacts in the Staging repository. From there they will need + to be released manually. + + Authentication details are taken from the =sonatype-nexus= server in your + =settings.xml= file. + +*** Distribution Management + + The Nexus Sonatype repositories are declared within =distributionManagement=. From 4dbd4d5c5144982edb9c5d8075d67fbe0b863c19 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 7 Oct 2018 11:03:25 +0100 Subject: [PATCH 3/4] Simplify .gitignore --- .gitignore | 52 ++-------------------------------------------------- 1 file changed, 2 insertions(+), 50 deletions(-) diff --git a/.gitignore b/.gitignore index 7933d63..4bfa550 100644 --- a/.gitignore +++ b/.gitignore @@ -1,51 +1,3 @@ -# Package Files # -*.jar -*.war -*.ear -*.zip - -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* - -# maven build outputs +.idea/ +*.iml target/ - -# netbeans legacy -nbproject/ -nbactions.xml - -# eclipse legacy -.project - -# intellij -.idea/libraries/ -.idea/workspace.xml -.idea/uiDesigner.xml -.idea/compiler.xml -.idea/misc.xml -.idea/checkstyle.xml -.idea/artifacts/ -.idea/dataSources* -.idea/tasks.xml -.idea/dictionaries/ -.idea/shelf/ -.idea/dynamic.xml -.idea/sqlDataSources.xml -.idea/gradle.xml -.idea/mongoSettings.xml -.idea/checkstyle-idea.xml -.idea/findbugs-idea.xml - -# Spring -spring.log -logs/ -/application.properties -/bootstrap.properties - -# Composer-style -vendor - -# Git and temp files -*.orig -*.patch -*~ From e43594d96d8d2041355bc35908429bd5c12d4ad1 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 7 Oct 2018 11:08:14 +0100 Subject: [PATCH 4/4] Update CHANGELOG --- CHANGELOG | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 936aec1..e67a5c2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,11 @@ CHANGELOG ========= +5.1.2 +----- + +* Explicitly disable `maven-deploy`plugin` + 5.1.1 -----