diff --git a/README.md b/README.md index b076e57..9f736a2 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,17 @@ The POM defines the following items: * `inceptionYear` * `licenses` * `developers` -* `distributionManagement` - 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/pom.xml b/pom.xml index 8c233c9..0efbfac 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ net.kemitix kemitix-parent - 5.0.2 + 5.0.3 pom Kemitix Parent @@ -36,6 +36,7 @@ UTF-8 1.8 + 1.6 @@ -47,17 +48,44 @@ - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots/ - - - sonatype-nexus-staging - Nexus Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + + + release + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven-gpg-plugin.version} + + ${gpg.passphrase} + + + + sign-artifacts + package + + sign + + + + + + + + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + + sonatype-nexus-staging + Nexus Release Repository + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + +