RegExp header only requiring Apache 2

External app who want to declare Apache 2 license with their own name
can add following to their pom.xml


    <build>
        <plugins>
            ...
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.17</version>
                <configuration>
                    <headerLocation>onos/apache2-java.header</headerLocation>
                </configuration>
            </plugin>
            ...
        </plugins>
    </build>

Change-Id: I9c1eded80caf2cf9447d00b9907591749a1904dd
diff --git a/lib/pom.xml b/lib/pom.xml
index 5759aa4..af013ea 100644
--- a/lib/pom.xml
+++ b/lib/pom.xml
@@ -844,8 +844,7 @@
                     <configLocation>onos/checkstyle-mvn.xml</configLocation>
                     <suppressionsLocation>onos/suppressions.xml
                     </suppressionsLocation>
-                    <headerLocation>onos/onos-java.header
-                    </headerLocation>
+                    <headerLocation>onos/onos-java.header</headerLocation>
                     <failsOnError>false</failsOnError>
                     <logViolationsToConsole>true</logViolationsToConsole>
                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
diff --git a/tools/build/conf/src/main/resources/onos/apache2-java.header b/tools/build/conf/src/main/resources/onos/apache2-java.header
new file mode 100644
index 0000000..8f2292c
--- /dev/null
+++ b/tools/build/conf/src/main/resources/onos/apache2-java.header
@@ -0,0 +1,4 @@
+/*
+ * Copyright 201[0-9].*
+ *
+ * Licensed under the Apache License, Version 2.0 \(the "License"\);