Connecting Maven, Eclipse, Checkstyle, and PMDPage edited by Benson MarguliesYou want to check your Java code with PMD and Checkstyle. You know what to do, you set up some rules files. You build with maven 2. You know what to do, you set up the plugins. You type at Eclipse. Now you have trouble. You need: a) Your Eclipse code formatting style, warning, and cleanup to be consistent with your rules. If you start looking at this, you will get a headache. Luckily for you, Dan Kulp did a ton of work to make this work. You can see it in CXF, and adapt it If you've done much Eclipse configuration, you know that pathnames are a pain. Relative pathnames Step 1: A project to contain the common files. CXF has a 'cxf-buildtools' project. It contains files for the tools. For each tool, there Step 2: Maven plugins use the files. The Maven plugins, of course, feed the same core XML files to the tools. By making the buildtools artifact Step 3: Eclipse Eclipse is configured via a collection of files that live in the In the top level POM, there is a profile called 'setup.eclipse'. It Eventually, setup.eclipse runs the Maven eclipse:eclipse goal to do the vanilla work
Change Notification Preferences
View Online
|
View Change
|
Add Comment
|
