On 1/23/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
The assumption is that you are using Maven in a large/corporate
environment for many projects, and sharing things like Checkstyle
configs etc in all of them.
Some people construct a simple Maven project, in their own company
groupId with an artifactId of say project-standards, and then bundle
things like checkstyle configs etc, and then put that dependency in
their corporate pom which is the parent for all projects in the
organization. The plugins will automatically find these config files
while building the project.
That exactly is what suits our environment and we wish to do that.
Q1)If I create standards project , say acme-project-standards , where
in acme-project-standards do I place the acme-checks.xml?Do I create
this as a normal maven project?The documentation here
http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html
(Use a custom developed Checkstyle Check modules) explains
customization but does not clarify where the acme-checks.xml would
go?
Q2)Assuming Q1 is sorted , then in my master pom.xml , I then list
acme-projects-standards as a dependency? Or must
acme-projects-standards be configured as an extension , eg (as
documented at
http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html)
<build>
<extensions>
<extension>
<groupId>com.mycompany</groupId>
<artifactId>mycompany-checkstyle-checks</artifactId>
<version>1.0</version>
</extension>
</extensions>
</build>
A step by step treatment would be very helpful.
Tx
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]