You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Barrie Treloar (JIRA)" <ji...@codehaus.org> on 2008/09/17 06:39:48 UTC

[jira] Closed: (MECLIPSE-166) Configure Eclipse Checkstyle plugin

     [ http://jira.codehaus.org/browse/MECLIPSE-166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Barrie Treloar closed MECLIPSE-166.
-----------------------------------

    Resolution: Fixed

This is possible now.
Here is the snipper we use.

I have added this into the site docs as configure-checkstyle.apt.

{code:xml}
<project>
  [...]
  <build>
    [...]
    <plugins>
      [...]
       <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-eclipse-plugin</artifactId>
          <configuration>
            <additionalBuildcommands>
              <buildcommand>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</buildcommand>
            </additionalBuildcommands>
            <additionalProjectnatures>
              <projectnature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</projectnature>
            </additionalProjectnatures>
            <additionalConfig>
              <file>
                <name>.checkstyle</name>
                <content>
                  <![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<fileset-config file-format-version="1.2.0" simple-config="true">
    <fileset name="all" enabled="true" check-config-name="<YOU CHECKSTYLE CONFIG NAME HERE>" local="false">
        <file-match-pattern match-pattern="." include-pattern="true"/>
    </fileset>
    <filter name="NonSrcDirs" enabled="true"/>
</fileset-config>
]]>
                </content>
              </file>
            </additionalConfig>
          </configuration>
        </plugin>
      [...]
    </plugins>
    [...]
  </build>
  [...]
</project>
{code}

> Configure Eclipse Checkstyle plugin
> -----------------------------------
>
>                 Key: MECLIPSE-166
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-166
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: New Feature
>            Reporter: Julien HENRY
>
> It would be great if checkstyle eclipse plugin is automatically configured from pom configuration.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira