Adding custom license for maven license plugin 53/6053/3
authorPatrick Brady <pb071s@att.com>
Wed, 19 Jul 2017 18:22:32 +0000 (11:22 -0700)
committerPatrick Brady <pb071s@att.com>
Wed, 19 Jul 2017 20:10:04 +0000 (13:10 -0700)
[APPC-87] Fix Maven License Plugin

Change-Id: If19274f46b2eaf83539642d313130bdcfa6a9eb7
Signed-off-by: Patrick Brady <pb071s@att.com>
license/appc/header.txt [new file with mode: 0644]
license/appc/license.txt [new file with mode: 0644]
license/licenses.properties [new file with mode: 0644]
pom.xml

diff --git a/license/appc/header.txt b/license/appc/header.txt
new file mode 100644 (file)
index 0000000..03de553
--- /dev/null
@@ -0,0 +1,15 @@
+Copyright (C) 2017 Amdocs
+=============================================================================
+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.
+
+ECOMP is a trademark and service mark of AT&T Intellectual Property.
\ No newline at end of file
diff --git a/license/appc/license.txt b/license/appc/license.txt
new file mode 100644 (file)
index 0000000..594c904
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+* ============LICENSE_START==========================================
+* ===================================================================
+* Copyright © 2017 AT&T Intellectual Property.
+* Copyright © 2017 Amdocs
+* All rights reserved.
+* ===================================================================
+* 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.
+* ============LICENSE_END============================================
+*
+* ECOMP is a trademark and service mark of AT&T Intellectual Property.
+*
+*/
diff --git a/license/licenses.properties b/license/licenses.properties
new file mode 100644 (file)
index 0000000..2700c0b
--- /dev/null
@@ -0,0 +1 @@
+appc=appc
diff --git a/pom.xml b/pom.xml
index d6df08d..faa9ebb 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                 <artifactId>license-maven-plugin</artifactId>
                 <version>1.10</version>
                 <configuration>
+                <extraExtensions>
+                    <yml>properties</yml>
+                    <yang>java</yang>
+                </extraExtensions>
                     <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
                     <processStartTag>============LICENSE_START=======================================================</processStartTag>
                     <processEndTag>============LICENSE_END=========================================================</processEndTag>
                     <sectionDelimiter>================================================================================</sectionDelimiter>
-                    <licenseName>apache_v2</licenseName>
+                    <licenseName>appc</licenseName>
+                    <!-- This should point to the license directory of the root folder of the base appc project -->
+                    <licenseResolver>file:${user.dir}/license</licenseResolver>
                     <inceptionYear>2017</inceptionYear>
                     <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
-                    <projectName>APPC</projectName>
-                    <!-- Do not automatically update copyright since Amdocs needs to be included manually -->
-                    <canUpdateCopyright>false</canUpdateCopyright>
+                    <projectName>ONAP : APPC</projectName>
+                    <canUpdateCopyright>true</canUpdateCopyright>
                     <canUpdateDescription>true</canUpdateDescription>
                     <canUpdateLicense>true</canUpdateLicense>
                     <emptyLineAfterHeader>true</emptyLineAfterHeader>