Use 'mvn license:format -N' at top of project to add missing headers
diff --git a/lib/build/header-definitions.xml b/lib/build/header-definitions.xml
new file mode 100644
index 0000000..84bf786
--- /dev/null
+++ b/lib/build/header-definitions.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<additionalHeaders>
+ <javadoc_style>
+ <firstLine>/**</firstLine>
+ <beforeEachLine> * </beforeEachLine>
+ <endLine> */ </endLine>
+ <!--afterEachLine></afterEachLine-->
+ <!--skipLine></skipLine-->
+ <firstLineDetectionPattern>(\s|\t)*/\*.*$</firstLineDetectionPattern>
+ <lastLineDetectionPattern>.*\*/(\s|\t)*$</lastLineDetectionPattern>
+ <allowBlankLines>false</allowBlankLines>
+ <isMultiline>true</isMultiline>
+ <padLines>false</padLines>
+ </javadoc_style>
+</additionalHeaders>
diff --git a/lib/build/header.txt b/lib/build/header.txt
new file mode 100644
index 0000000..5d6a87e
--- /dev/null
+++ b/lib/build/header.txt
@@ -0,0 +1,13 @@
+Copyright (C) 2014 Google Inc.
+
+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.
diff --git a/pom.xml b/pom.xml
index 07e7799..cc93bc7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -198,6 +198,37 @@
<pluginManagement>
<plugins>
<!--
+ | Use 'mvn license:format -N' at top of project to add missing headers
+ -->
+ <plugin>
+ <groupId>com.mycila</groupId>
+ <artifactId>license-maven-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ <header>${project.basedir}/lib/build/header.txt</header>
+ <headerDefinitions>
+ <headerDefinition>${project.basedir}/lib/build/header-definitions.xml</headerDefinition>
+ </headerDefinitions>
+ <skipExistingHeaders>true</skipExistingHeaders>
+ <aggregate>true</aggregate>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ <excludes>
+ <!-- avoid touching munged/lib/test/example code -->
+ <exclude>**/build/**</exclude>
+ <exclude>**/target/**</exclude>
+ <exclude>**/lib/**</exclude>
+ <exclude>**/test/**</exclude>
+ <exclude>**/example*/**</exclude>
+ </excludes>
+ <mapping>
+ <java>JAVADOC_STYLE</java>
+ </mapping>
+ </configuration>
+ </plugin>
+ <!--
| Standard LICENSE and NOTICE files
-->
<plugin>