maven artifacts pmd:pmd and pmd:pmd-jdk14 are now uploaded to sourceforge

new releases should be picked up automatically by synchronization script
on repo.maven.org


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5700 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2007-12-15 21:47:57 +00:00
parent 733ce7d878
commit 60a1ea4ff2
4 changed files with 374 additions and 31 deletions

View File

@ -17,8 +17,10 @@ elif [ $option = "all" ]; then
maven -qb site
rm -f rulesets/*.xml
svn up rulesets
maven artifact:create-upload-bundle
elif [ $option = "uploadcurrent" ]; then
echo "Generating and uploading maven artifacts"
mvn -q source:jar javadoc:jar deploy
mvn -q deploy:deploy-file -Durl=scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.1.jar -DpomFile=pmd-jdk14-pom.xml
echo "Generating xdocs and uploading"
ruby munge_rulesets.rb
maven -qb pmd:rulesets-index xdoc:generate-from-pom
@ -35,6 +37,9 @@ elif [ $option = "uploadcurrent" ]; then
cd ../
ssh pmd.sourceforge.net "cd /home/groups/p/pm/pmd/htdocs/current/ && tar -zxf docs.tar.gz && cp -R docs/* . && rm -rf docs && rm docs.tar.gz"
elif [ $option = "upload" ]; then
echo "Generating and uploading maven artifacts"
mvn -q source:jar javadoc:jar deploy
mvn -q deploy:deploy-file -Durl=scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2 -DrepositoryId=pmd-repo -Dfile=java14/lib/pmd14-4.1.jar -DpomFile=pmd-jdk14-pom.xml
echo "Uploading xdocs"
DOCS_FILE=docs.tar.gz
cp xdocs/cpdresults.txt xdocs/cpp_cpdresults.txt target/docs/

View File

@ -62,15 +62,16 @@ Add the pmd-src-<version>.zip file
Classify the file
Click File Releases, Edit Release, set previous version to 'hidden'.
upload command below will create and upload the maven artifacts to sourceforge. Login info
for 'pmd-repo' must be defined in ~/.m2/settings.xml
cd ~/pmd/pmd/
update the "download" and "what's new" link in navigation.xml
./docs.sh all
./docs.sh upload
scp target/pmd-*-bundle.jar pmd.sourceforge.net:/home/groups/p/pm/pmd/htdocs/
update cpd.jnlp
Open a JIRA Maven upload issue: http://maven.apache.org/maven-1.x/reference/repository-upload.html
Submit news to SF
Go to http://freshmeat.net/
Submit news to java.net

320
pmd/pmd-jdk14-pom.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,21 @@
<groupId>pmd</groupId>
<artifactId>pmd</artifactId>
<name>PMD</name>
<version>4.1</version>
<version>4.1.1</version>
<description>
<![CDATA[
<p>PMD scans Java source code and looks for potential problems like:</p>
<ul>
<li>Possible bugs - empty try/catch/finally/switch statements</li>
<li>Dead code - unused local variables, parameters and private methods</li>
<li>Suboptimal code - wasteful String/StringBuffer usage</li>
<li>Overcomplicated expressions - unnecessary if statements, for loops that could be while loops</li>
<li>Duplicate code - copied/pasted code means copied/pasted bugs</li>
</ul>
<p>You can <b><a href="http://sourceforge.net/project/showfiles.php?group_id=56262">download everything from here</a></b>, and you can get an overview of all the rules at the <a href="rules/index.html">rulesets index</a> page.</p>
<p>PMD is <a href="integrations.html">integrated</a> with JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs.</p>
]]>
</description>
<url>http://pmd.sourceforge.net/</url>
<issueManagement>
<url>http://www.sourceforge.net/tracker/?group_id=56262</url>
@ -200,11 +214,17 @@
<resource>
<directory>${basedir}</directory>
<includes>
<include>rulesets/*.xml</include>
<include>rulesets/**/*.xml</include>
<include>rulesets/*.properties</include>
<include>etc/pmd-nicerhtml.xsl</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<testResources>
<testResource>
@ -219,7 +239,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
<skip>false</skip>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
@ -246,7 +266,7 @@
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>3.1</version>
<version>3.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
@ -255,39 +275,36 @@
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>default</id>
<id>pmd-repo</id>
<name>Default Repository</name>
<url>file:///home/groups/p/pm/pmd/</url>
<url>scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs/maven2</url>
</repository>
<site>
<id>default</id>
<id>pmd-site</id>
<name>Default Site</name>
<url>scp://pmd.sourceforge.net//home/groups/p/pm/pmd/htdocs</url>
<url>scp://pmd.sourceforge.net/home/groups/p/pm/pmd/htdocs</url>
</site>
</distributionManagement>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<linkXref>true</linkXref>
<sourceEncoding>utf-8</sourceEncoding>
<minimumTokens>100</minimumTokens>
<targetJdk>1.5</targetJdk>
<rulesets>
<ruleset>http://pmd.svn.sourceforge.net/viewvc/pmd/trunk/pmd/rulesets/internal/</ruleset>
</rulesets>
</configuration>
</plugin>
</plugins>
</reporting>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<linkXref>true</linkXref>
<sourceEncoding>utf-8</sourceEncoding>
<minimumTokens>100</minimumTokens>
<targetJdk>1.5</targetJdk>
<rulesets>
<ruleset>http://pmd.svn.sourceforge.net/viewvc/pmd/trunk/pmd/rulesets/internal/</ruleset>
</rulesets>
</configuration>
</plugin>
</plugins>
</reporting>
</project>