From 8cebc5dc847241cfa3f108c3a34455902bdcbc2e Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 29 Sep 2011 18:57:21 +0000 Subject: [PATCH] Added license info to pom.xml, extended next release howto for maven git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.3.x@7366 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/doing_the_next_pmd_release.txt | 26 ++++++++++++++++++++++++++ pmd/pom.xml | 7 +++++++ 2 files changed, 33 insertions(+) diff --git a/pmd/etc/doing_the_next_pmd_release.txt b/pmd/etc/doing_the_next_pmd_release.txt index 6c9eb62592..8e706e70e2 100644 --- a/pmd/etc/doing_the_next_pmd_release.txt +++ b/pmd/etc/doing_the_next_pmd_release.txt @@ -80,3 +80,29 @@ Submit news to SF Go to http://freshmeat.net/ Submit news to java.net Do a blog entry + + +Getting the new PMD version into Maven Central Repository: +---------------------------------------------------------- +1. Make sure you have a gpg key: + + gpg --list-keys + +2. Create a bundle + + mvn clean source:jar javadoc:jar package gpg:sign repository:bundle-create -Dgpg.keyname=your_key -Dgpg.passphrase=your_pwd + +3. The bundle is target/pmd-x.x.x-bundle.jar. + + Test it: target/pmd-x.x.x.jar is the file, that is contained in the bundle. + So we can use it: + + java -cp target/pmd-x.x.x.jar:lib/asm-3.2.jar:lib/javacc.jar:lib/jaxen-1.1.1.jar net.sourceforge.pmd.PMD src/net/sourceforge/pmd/PMD.java text unusedcode + + This should work: "No problems found!" + + +4. Upload pmd-x.x.x-bundle.jar to https://oss.sonatype.org. + +More info: https://docs.sonatype.org/display/Repository/Uploading+3rd-party+Artifacts+to+Maven+Central + diff --git a/pmd/pom.xml b/pmd/pom.xml index a523cb1b82..710239220b 100644 --- a/pmd/pom.xml +++ b/pmd/pom.xml @@ -33,6 +33,13 @@ 2002 + + + BSD-style + http://pmd.sourceforge.net/license.html + repo + + PMD development