In the following code, <configuration> tag is optional. If you want to use
your customized xml file, then u can specify it over there. Otherwise, even
if u don't specify that, it works fine. It takes the default .xml file from
checkstyle plugin from the local plugin repository.

On 6/20/06, Stefan Kleineikenscheidt <[EMAIL PROTECTED]> wrote:


You set them in the pom.xml file.  Should like that


  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <configLocation>
            {$basedir}/src/main/config/checkstyle.xml
          </configLocation>
        </configuration>
      </plugin>
    </plugins>
  <reporting>


Hth,
-Stefan





________________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 19, 2006 5:24 PM
To: [email protected]
Subject: Checkstyle plugin Maven 2

Does anyone know how the maven 2 checkstyle.properties are set ?
In maven 1.x they were provided in a file checkstyle.properties
Tx


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to