title: How to use the license-maven-plugin
body: <p>I would like to use the <code>license-maven-plugin</code> in order to be able to generate license headers for my project.</p>
  
  <p>So I have the following pom.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;org.foo&lt;/groupId&gt;
      &lt;artifactId&gt;bar-parent&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;name&gt;Bar: Parent&lt;/name&gt;
  
      &lt;licenses&gt;
          &lt;license&gt;
              &lt;name&gt;Apache 2.0&lt;/name&gt;
              &lt;url&gt;http://www.apache.org/licenses/LICENSE-2.0.txt&lt;/url&gt;
              &lt;distribution&gt;repo&lt;/distribution&gt;
              &lt;comments&gt;A business-friendly OSS license&lt;/comments&gt;
          &lt;/license&gt;
      &lt;/licenses&gt;
  
      &lt;organization&gt;
          &lt;name&gt;My Corp.&lt;/name&gt;
          &lt;url&gt;http://www.mycorp.org/&lt;/url&gt;
      &lt;/organization&gt;
  
      &lt;inceptionYear&gt;2014&lt;/inceptionYear&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  
          &lt;license.licenseName&gt;apache_v2&lt;/license.licenseName&gt;
      &lt;/properties&gt;
  
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                      &lt;artifactId&gt;license-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.6&lt;/version&gt;
  
                      &lt;configuration&gt;
                          &lt;verbose&gt;false&lt;/verbose&gt;
                          &lt;includes&gt;
                              &lt;includes&gt;**/*.java&lt;/includes&gt;
                          &lt;/includes&gt;
                      &lt;/configuration&gt;
  
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;generate-license-headers&lt;/id&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;update-file-header&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;phase&gt;process-sources&lt;/phase&gt;
                              &lt;configuration&gt;
                                  &lt;licenseName&gt;Apache 2.0&lt;/licenseName&gt;
                                  &lt;roots&gt;
                                      &lt;root&gt;src/main/java&lt;/root&gt;
                                      &lt;root&gt;src/test/java&lt;/root&gt;
                                  &lt;/roots&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
      ...
  &lt;/project&gt;
  </code></pre>
  
  <p>I'm invoking the following from the command-line:</p>
  
  <pre><code>mvn license:update-file-header
  </code></pre>
  
  <p>This all passes, but my license header ends up looking like this:</p>
  
  <pre><code>/*
   * #%L
   * Bar: Foo
   * %%
   * Copyright (C) 2014 My Corp.
   * %%
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   * #L%
   */
  </code></pre>
  
  <p>Obviously, I don't want to the <code>#%L</code>, <code>%%</code> and <code>#L%</code> in my license header. What do I need to set in order to get rid of those?</p>