What are the best practices for Java development team?

At individual level
In Eclipse IDE use following files and share with team to maintain consistency.

PMD-rules-eclipse.xml
Eclipse-Clean-Config.xml
Eclipse-Code-Formatter.xml
Eclipse-Code-Template.xml
Eclipse-Import-Order.importorder

TestNG Test Cases
Emma plug in to check code coverage
Tie the memory and performance numbers to test cases

At team level
What happens in Hudson?
Configure following in Hudson, so that it is easy to check after each build.

Code Coverage Report
Open Tasks Report
PMD Report
Surefire Test Report

At organizational level
How to compare different projects / modules in organization?
Use SONAR and use maven plug in to push the data to Sonar server.

Code Coverage
Comments
Complexity
Lines of Code
PMD
Test Success

References:
http://java.net/projects/hudson/
http://www.sonarsource.org/
http://pmd.sourceforge.net/
http://emma.sourceforge.net/

Hudson Setup

I would like to write about Hudson Setup http://wiki.hudson-ci.org.

Option 1: Decided to go with >java -jar hudson.war
It is not performing as expected. So did the following steps.

Setup Maven manually and provide following information.

starthudson.sh file looks like this. Fill with correct information

export MAVEN_HOME=$HOME/apache-maven-2.2.1
export PATH=$MAVEN_HOME/bin:$PATH

export JAVA_HOME=/apps/java1.5/
export PATH=$JAVA_HOME/bin:$PATH

export HUDSON_HOME=$HOME/hudson/.hudson

nohup java -jar hudson.war –httpPort=23455 –ajp13Port=23456 &

Manually setup .m2 folder. I.e copy content from local system to linux system.

Now Hudson is up and running.

Step 2: Enable the security. Same document given how to disable security too.

http://wiki.hudson-ci.org/display/HUDSON/Standard+Security+Setup

List of Hudson plugins are available at http://wiki.hudson-ci.org/display/HUDSON/Plugins

-o-

svn: PROPFIND request failed

Problem Statement:
svn: Processing PROPFIND request response failed: Content is not allowed in prolog. (/svn/project1/module1)
svn: PROPFIND request failed on ‘/svn/project1/module1’
svn: Processing PROPFIND request response failed: Content is not allowed in prolog. (/svn/project1/module1)
svn: PROPFIND request failed on ‘/svn/project1/module1’
RA layer request failed
svn: PROPFIND of ‘/svn/project1/module1’: 200 OK (http://localserver)

Solution:
Server SVN version is 1.4.8. Client version used is 1.6.6
After uninstalling 1.6.6 and installing 1.4.8 all issues resolved.

-o-