Update release docu, rename releases ruleset 514->520
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<ruleset name="514"
|
||||
<ruleset name="520"
|
||||
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
|
||||
<description>
|
||||
This ruleset contains links to rules that are new in PMD v5.1.4
|
||||
This ruleset contains links to rules that are new in PMD v5.2.0
|
||||
</description>
|
||||
|
||||
<rule ref="rulesets/jsp/basic.xml/NoUnsanitizedJSPExpression"/>
|
2
pom.xml
2
pom.xml
@ -720,7 +720,7 @@
|
||||
<profile>
|
||||
<id>pmd-release</id>
|
||||
<properties>
|
||||
<pmd.website.baseurl>http://pmd.sourceforge.net/pmd-${project.version}</pmd.website.baseurl>
|
||||
<pmd.website.baseurl>http://pmd.sourceforge.net/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
|
@ -28,7 +28,7 @@ $ git status
|
||||
|
||||
<ul>
|
||||
<li>Ensure all the new rules are listed in a the proper file:
|
||||
<source>src/main/resources/rulesets/releases/<version>.xml file.</source>
|
||||
<source>pmd-core/src/main/resources/rulesets/releases/<version>.xml file.</source>
|
||||
</li>
|
||||
<li>Update version/release info in <strong>src/site/markdown/changelog.md</strong>.</li>
|
||||
<li>Update <strong>../pmd.sourceforge.net/.htaccess</strong> of our website, to redirect to the new version</li>
|
||||
@ -36,17 +36,17 @@ $ git status
|
||||
</ul>
|
||||
|
||||
<source>
|
||||
$ mvn clean verify post-site #(order of targets DOES matter)
|
||||
$ mvn clean install
|
||||
</source>
|
||||
|
||||
<p>Unzip and test manually (just to be on the safe side of the road):</p>
|
||||
|
||||
<source>
|
||||
cd target; unzip pmd-bin-<version>.zip; cd pmd-bin-<version>
|
||||
./bin/run.sh pmd -d ../../src/main/java -language java -f xml -R rulesets/java/unusedcode.xml
|
||||
./bin/run.sh pmd -d ../../src/main/java -language java -f xml -R java-unusedcode
|
||||
./bin/run.sh pmd -d ../../src/main/java -language java -f html -R rulesets/java/unusedcode.xml
|
||||
cd ..; cd ..
|
||||
cd pmd-dist/target; unzip pmd-bin-<version>.zip; cd pmd-bin-<version>
|
||||
./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f xml -R rulesets/java/unusedcode.xml
|
||||
./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f xml -R java-unusedcode
|
||||
./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f html -R rulesets/java/unusedcode.xml
|
||||
cd ..; cd ../..
|
||||
</source>
|
||||
|
||||
<p>Check in all (version) changes to branch master:</p>
|
||||
@ -157,8 +157,8 @@ Login info for 'pmd-site' must be defined in ~/.m2/settings.xml
|
||||
<source>
|
||||
$ ssh your_sf_login,pmd@shell.sourceforge.net create
|
||||
...
|
||||
$ cd target/checkout/pmd
|
||||
$ mvn clean verify site-deploy -Psf-release # it's import to execute verify, so that pmd.jar is created and included in the zip packages
|
||||
$ cd target/checkout/
|
||||
$ mvn clean install site-deploy site:stage -Psf-release # it's import to execute install, so that all pmd-*.jars are created and included in the zip packages
|
||||
...
|
||||
$ ssh your_sf_login@shell.sourceforge.net "shutdown"
|
||||
</source>
|
||||
@ -166,22 +166,30 @@ $ ssh your_sf_login@shell.sourceforge.net "shutdown"
|
||||
<ul>
|
||||
<li>Before you upload the zip files, unzip and test once (just to be on the safe side of the road):
|
||||
<source>
|
||||
cd target; unzip pmd-bin-<version>.zip; cd pmd-bin-<version>
|
||||
./bin/run.sh pmd -d ../../src/main/java -language java -f xml -R rulesets/java/unusedcode.xml
|
||||
./bin/run.sh pmd -d ../../src/main/java -language java -f xml -R java-unusedcode
|
||||
./bin/run.sh pmd -d ../../src/main/java -language java -f html -R rulesets/java/unusedcode.xml
|
||||
cd ..; cd ..
|
||||
$ cd pmd-dist/target; unzip pmd-bin-<version>.zip; cd pmd-bin-<version>
|
||||
$ ./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f xml -R rulesets/java/unusedcode.xml
|
||||
$ ./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f xml -R java-unusedcode
|
||||
$ ./bin/run.sh pmd -d ../../../pmd-java/src/main/java -language java -f html -R rulesets/java/unusedcode.xml
|
||||
$ cd ..; cd ../..
|
||||
</source>
|
||||
</li>
|
||||
<li>While the site has been deployed to sourceforge, it's still usefull, to have it downloadable at once:
|
||||
<source>
|
||||
$ cd target
|
||||
$ mv staging pmd-doc-<version>
|
||||
$ zip -r pmd-doc-<version>.zip pmd-doc-<version>/
|
||||
$ cd ..
|
||||
</source>
|
||||
</li>
|
||||
<li>Upload the files to sourceforge's file section:
|
||||
<source>
|
||||
$ rsync -avhP target/pmd-*-<version>.zip your_sf_login@web.sourceforge.net:/home/frs/project/pmd/pmd/<version>/
|
||||
$ rsync -avhP pmd-dist/target/pmd-*-<version>.zip target/pmd-doc-<version>.zip your_sf_login@web.sourceforge.net:/home/frs/project/pmd/pmd/<version>/
|
||||
$ rsync -avhP src/site/markdown/changelog.md your_sf_login@web.sourceforge.net:/home/frs/project/pmd/pmd/<version>/ReadMe.txt
|
||||
</source>
|
||||
</li>
|
||||
<li>Verify the MD5 sums on <a href="https://sourceforge.net/projects/pmd/files/pmd/">Files</a> and locally:
|
||||
<source>
|
||||
$ md5sum target/pmd-*-<version>.zip
|
||||
$ md5sum pmd-dist/target/pmd-*-<version>.zip target/pmd-doc-<version>.zip
|
||||
</source>
|
||||
</li>
|
||||
<li>Go to <a href="https://sourceforge.net/projects/pmd/files/pmd/">Files</a>, to folder "pmd/<version>",
|
||||
|
Reference in New Issue
Block a user