On Tuesday, February 14, 2012 3:18:16 PM Andrei Shakirin wrote:
> Hi,
> 
> Could somebody give me advise how to configure checkstyle with Eclipse for
> CXF sources? I did all what specified on
> http://cxf.apache.org/connecting-maven-eclipse-checkstyle-and-pmd.html: run
> maven with -P setup.eclipse, eclipse artifacts are generated inclusive
> .checkstyle, .pmd, .ruleset, but Eclipse doesn't really accept the
> checkstyle and PDM. I use Eclipse Indigo 3.7.1.
> 
> What I do wrong?
> Is there other way to setup them?

That should "just work" providing you have it pointing at your workspace 
correctly.   The default is "../workspace" which may not be your location.

In my .m2/settings.xml, I have:

    <activeProfiles>
        <activeProfile>extra</activeProfile>
    </activeProfiles>
    <profiles>
        <profile>
            <id>extra</id>
            <properties>
                <gpg.useagent>true</gpg.useagent>
                
<eclipse.workspace>/home/dkulp/working/workspace</eclipse.workspace>
                <downloadSources>true</downloadSources>
                
<eclipse.workspace.dir>/home/dkulp/working/workspace</eclipse.workspace.dir>
                
<eclipse.output.directory>${project.build.outputDirectory}</eclipse.output.directory>
            </properties>
        </profile>
</profiles>

which sets the workspace dir to the location of my workspace.   You can check 
if your workspace dir ends up with cxf-checkstyle-corba.xml  and  cxf-
checkstyle.xml files in it.

Also, occassionaly, when Eclipse imports projects, it doesn't read the .pmd 
and .checkstyle things properly.   Usually if you close the projects, re-run 
"mvn -Psetup.eclipse", then open the projects and refresh them all, it kind of 
fixes itself.


-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to