title: Maven multi-module project with license plugin
body: <p>I have a multi-module <a href="https://github.com/johncarl81/transfuse" rel="nofollow">project</a> in which I'm trying to set up the license plugin to manage all the licenses.  Here's the project setup:</p>
  
  <pre><code>─── transfuse-project
      ├── examples
      │   ├── helloAndroid
      │   │   ├── pom.xml
      │   │   ├── ...
      │   ├── integrationTest
      │   │   ├── pom.xml
      │   │   ├── ...
      │   ├── pom.xml
      │   └── ...
      ├── transfuse
      │   ├── pom.xml
      │   ├── ...
      ├── transfuse-api
      │   ├── pom.xml
      │   ├── ...
      ├── NOTICE
      └── pom.xml
  </code></pre>
  
  <p>Each pom.xml inherits from the transfuse-project pom.xml.  In the project pom.xml I have set up the license plugin to apply the NOTICE to the relevant files:</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;com.mycila.maven-license-plugin&lt;/groupId&gt;
              &lt;artifactId&gt;maven-license-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.9.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;header&gt;NOTICE&lt;/header&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*.java&lt;/include&gt;
                      &lt;include&gt;**/*.xml&lt;/include&gt;
                  &lt;/includes&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;**/.*/**&lt;/exclude&gt;
                      &lt;exclude&gt;target/**&lt;/exclude&gt;
                      &lt;exclude&gt;**/AndroidManifest.xml&lt;/exclude&gt;
                  &lt;/excludes&gt;
                  &lt;properties&gt;
                      &lt;year&gt;2013&lt;/year&gt;
                      &lt;name&gt;John Ericksen&lt;/name&gt;
                  &lt;/properties&gt;
                  &lt;useDefaultExcludes&gt;true&lt;/useDefaultExcludes&gt;
                  &lt;strictCheck&gt;true&lt;/strictCheck&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;check-headers&lt;/id&gt;
                      &lt;phase&gt;verify&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;check&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>This configuration works if I build directly off of the root (transfuse-project).  The problem arises when I build the integrationTest example or api directly.  Maven cannot find the NOTICE file I provided in the project root:</p>
  
  <pre><code>[ERROR] Failed to execute goal com.mycila.maven-license-plugin:maven-license-plugin:1.9.0:check (check-headers) on project transfuse-api: Some files do not have the expected license header -&gt; [Help 1]
  </code></pre>
  
  <p>And what's worse, it finds another dependency's NOTICE file.  If I run <code>mvn license:format</code> in a sub-module it replaces all of the module's headers with the dependency's NOTICE file.</p>
  
  <p>I believe I can add a NOTICE file within each sub-module to fix this problem and configure each sub-module pom with its own license plugin, but I would like to avoid that duplication if possible.  Is there some configuration or setup that will work with my project setup? </p>