Hi,

I have a multi module project with this layout

Base
|-- pom.xml
|-- build-tools
|   |-- src
|   |   `-- main
|   |       `-- resources
|   |           `-- org
|   |               `-- project
|   |                   `-- checkstyle.xml
|   `-- pom.xml
|-- parent
|-- module1
|-- module2
`-- modulen

Everything is like it is described in
http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
with one exception:

The Base/pom.xml is not the parent module pom but Base/parent/pom.xml is.

After following the guide above I can run "mvn checkstyle:checkstyle"
fine on all modules and it uses the checkstyle.xml from the build-tools
module.

Just "mvn site" will not work with this error:

[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Failed during checkstyle
execution
Could not find resource 'org/project/checkstyle.xml'.


Why does it work with "checkstyle:checkstyle" and not with "site"?


Thanks

Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to