A better reusable approach is to pack the xml into a jar, and insert that jar onto the checkstyle plugin's classpath by listing a dependency in the plugin config. Then you can reuse this jar in many modules (and version it too). See here for an example of adding the dependency: http://blogs.sonatype.com/brian/2008/04/23/1208965980000.html
-----Original Message----- From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2008 7:26 AM To: Maven Users List Subject: Re: [M2] Checkstyle 2.2 plugin - custom configLocation I think configLocation is ${basedir}-aligned. Try moving your file to ${basedir}/custom_checkstyle.xml Oor you can change your config to: <configLocation>src/main/resources/custom_checkstyle.xml</configLocation > Orford, Ian wrote: > I've been trying to use the <configLocation/> element with the new > version of the checkstyle plugin. > > My config file is in src/main/resources and is called > custom_checkstyle.xml. > So my configuration says > <configLocation>custom_checkstyle.xml</configLocation> > > But it cannot find the file. > > Probably a user error. > I've verified that the custom_checkstyle.xml file is put into the > target/classes directory after the compile phase. > > I've also tried the following configLocations: > file:custom_checkstyle.xml > classpath:custom_checkstyle.xml > > Please tell me what I'm doing wrong. Many thanks, Ian > > > -- > This e-mail is confidential and the information contained in it may be privileged. It should not be read, copied or used by anyone other than the intended recipient. If you have received it in error, please contact the sender immediately by telephoning +44 (0)20 7623 8000 or by return email, and delete the e-mail and do not disclose its contents to any person. We believe, but do not warrant, that this e-mail and any attachments are virus free, but you must take full responsibility for virus checking. Please refer to http://www.dresdnerkleinwort.com/disc/email/ and read our e-mail disclaimer statement and monitoring policy. > > Dresdner Kleinwort is the trading name of the investment banking division of Dresdner Bank AG, and operates through Dresdner Bank AG, Dresdner Kleinwort Limited, Dresdner Kleinwort Securities Limited and their affiliated or associated companies. Dresdner Bank AG is a company incorporated in Germany with limited liability and registered in England (registered no. FC007638, place of business 30 Gresham Street, London EC2V 7PG), and is authorised by the German Federal Financial Supervisory Authority and by the Financial Services Authority ('FSA') and regulated by the FSA for the conduct of designated business in the UK. Dresdner Kleinwort Limited is a company incorporated in England (registered no. 551334, registered office 30 Gresham Street, London EC2V 7PG), and is authorised and regulated by the FSA. Dresdner Kleinwort Securities Limited is a company incorporated in England (registered no. 1767419, registered office 30 Gresham Street, London EC2V 7PG), and is authorised and regulated by the FSA. > > -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
