2

I would like to add some common configuration files like checkstyle rules, findbug rules, PMD rules etc., to one maven project and refer to these files in other maven projects.

Is there a way this can be done in Maven?

Vikdor
  • 23,934
  • 10
  • 61
  • 84
  • possible duplicate of [log4j configuration file in a multi-module Maven project](http://stackoverflow.com/questions/4162992/log4j-configuration-file-in-a-multi-module-maven-project) – Petr Janeček Dec 17 '14 at 11:56
  • The easiest way would be, to put the plugins and its resources into your parent pom? – slowy Dec 17 '14 at 12:02
  • 1
    For checkstyle rules there is an [example in the documentation](http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html). In [findbugs-maven-plugin there is also an example in the docs](http://mojo.codehaus.org/findbugs-maven-plugin/examples/multi-module-config.html). PMD might be the way via maven-remote-resource-plugin. – khmarbaise Dec 17 '14 at 12:28

1 Answers1

1

Use the Maven Remote Resources plugin.

Example here.

Dave
  • 591
  • 2
  • 13