Improve license scan result 63/94763/3
authorMatthieu Geerebaert <matthieu.geerebaert@orange.com>
Mon, 2 Sep 2019 13:59:16 +0000 (15:59 +0200)
committerMatthieu Geerebaert <matthieu.geerebaert@orange.com>
Wed, 4 Sep 2019 14:26:54 +0000 (16:26 +0200)
Update pom.xml with new extension for mvn license:check and license:format

Change-Id: Ib3fb1334178f4e4700b84c59f4a2af928b8f6207
Issue-ID: EXTAPI-306
Signed-off-by: MatthieuGeerebaert <matthieu.geerebaert@orange.com>
24 files changed:
.gitreview
docs/offeredapis/api_hub/api.plantuml
docs/offeredapis/api_hub/model.xsd
docs/offeredapis/api_hub/swagger.yaml
docs/offeredapis/api_serviceCatalog/api.plantuml
docs/offeredapis/api_serviceCatalog/model.xsd
docs/offeredapis/api_serviceCatalog/swagger.yaml
docs/offeredapis/api_serviceInventory/api.plantuml
docs/offeredapis/api_serviceInventory/model.xsd
docs/offeredapis/api_serviceInventory/swagger.yaml
docs/offeredapis/api_serviceOrder/api.plantuml
docs/offeredapis/api_serviceOrder/model.xsd
docs/offeredapis/api_serviceOrder/swagger.yaml
docs/offeredapis/api_status/api.plantuml
docs/offeredapis/api_status/model.xsd
docs/offeredapis/api_status/swagger.yaml
pom.xml
src/test/java/joe.jpage [deleted file]
src/test/resources/karatetest/features/00--ServiceCatalog.feature
src/test/resources/karatetest/features/01--ServiceInventory.feature
src/test/resources/karatetest/features/02--ServiceOrder.feature
src/test/resources/karatetest/features/03--Subscriber.feature
src/test/resources/karatetest/features/04--StatusRessourceTest.feature
src/test/resources/karatetest/features/05--ListenerResourceTestTarget.feature

index 4ddee5c..de9a2b3 100644 (file)
@@ -1,4 +1,19 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
+
 [gerrit]
 host=gerrit.onap.org
 port=29418
 project=externalapi/nbi.git
+
index 0b0016c..b495300 100644 (file)
@@ -1,3 +1,19 @@
+#
+#     Copyright (c) 2018 Orange
+#
+#     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.
+#
+
 @startuml
 
 
index 1fee9df..cd7c8b1 100644 (file)
@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+        Copyright (c) 2018 Orange
+
+        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.
+
+-->
 <xs:schema xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
            xmlns="http://orange.com/ONAPNBI/api/hub/v4/model"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
index 52f5859..dc8e16b 100644 (file)
@@ -1,3 +1,16 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
 swagger: "2.0"
 info:
   description: "Provides the ability to subscribe to and unsubscribe from External\
index 8483238..0de0005 100644 (file)
@@ -1,3 +1,19 @@
+#
+#     Copyright (c) 2018 Orange
+#
+#     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.
+#
+
 @startuml
 
 enum LifecycleStatusValues {
index 4011997..8be053c 100644 (file)
@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+        Copyright (c) 2018 Orange
+
+        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.
+
+-->
 <xs:schema xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
            xmlns="http://orange.com/ONAPNBI/api/serviceCatalog/v3/model"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
index b9cfbc6..b810cdf 100644 (file)
@@ -1,3 +1,16 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
 swagger: "2.0"
 info:
   description: "serviceCatalog API designed for ONAP Beijing Release.\nThis API is\
index 3805ae9..ed869ff 100644 (file)
@@ -1,3 +1,19 @@
+#
+#     Copyright (c) 2018 Orange
+#
+#     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.
+#
+
 @startuml
 
 enum eventType {
index fa63c9e..0f6a3d3 100644 (file)
@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+        Copyright (c) 2018 Orange
+
+        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.
+
+-->
 <xs:schema xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
            xmlns="http://orange.com/ONAPNBI/api/serviceInventory/v4/model"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
index 0d85e25..8f2ebee 100644 (file)
@@ -1,3 +1,16 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
 swagger: "2.0"
 info:
   description: "Query information about instantiated services\n\nList of available\
index c13c0c5..9464f56 100644 (file)
@@ -1,3 +1,19 @@
+#
+#     Copyright (c) 2018 Orange
+#
+#     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.
+#
+
 @startuml
 
 enum ActionType {
index aecd8f4..61ce741 100644 (file)
@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+        Copyright (c) 2018 Orange
+
+        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.
+
+-->
 <xs:schema xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
            xmlns="http://orange.com/ONAPNBI/api/serviceOrder/v4/model"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
index 3485680..2108fc3 100644 (file)
@@ -1,3 +1,16 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
 swagger: "2.0"
 info:
   description: "Request the instantiation of a service\n\nA Service Order is a type\
index 6c5ed42..665143d 100644 (file)
@@ -1,3 +1,19 @@
+#
+#     Copyright (c) 2018 Orange
+#
+#     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.
+#
+
 @startuml
 
 enum StatusValue {
index c679ac2..fa6ce4a 100644 (file)
@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+        Copyright (c) 2018 Orange
+
+        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.
+
+-->
 <xs:schema xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
            xmlns="http://orange.com/ONAPNBI/api/status/v4/model"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
index c35ba4f..7f74c26 100644 (file)
@@ -1,3 +1,16 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
 swagger: "2.0"
 info:
   description: "Provides a healthcheck to verify that the NBI component is running\
diff --git a/pom.xml b/pom.xml
index 69d1aae..0c1d499 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+        Copyright (c) 2018 Orange
+
+        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.
+
+-->
 <!-- Copyright (c) 2018 Orange 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 
           <includes>
             <include>restclient/**</include>
             <include>src/**</include>
-            <include>./**/*.xml</include>
-            <include>./**/*.xml</include>
-            <include>./**/*.yml</include>
-            <include>./**/*.yaml</include>
+            <include>**/*.xml</include>
+            <include>**/*.xsd</include>
+            <include>**/*.yml</include>
+            <include>**/*.yaml</include>
+            <include>**/*.plantuml</include>
           </includes>
           <excludes>
             <!-- karate-config.js doesn't support comment, and is mandatory by
               karate -->
             <exclude>src/test/java/karate-config.js</exclude>
+            <exclude>releases/**/*.yaml</exclude>
           </excludes>
           <skipExistingHeaders>true</skipExistingHeaders>
           <skip>false</skip>
           <mapping>
             <http>SCRIPT_STYLE</http>
+            <xsd>XML_STYLE</xsd>
+            <yaml>SCRIPT_STYLE</yaml>
+            <yml>SCRIPT_STYLE</yml>
+            <feature>SCRIPT_STYLE</feature>
+            <plantuml>SCRIPT_STYLE</plantuml>
           </mapping>
         </configuration>
         <executions>
diff --git a/src/test/java/joe.jpage b/src/test/java/joe.jpage
deleted file mode 100644 (file)
index 0e28672..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-java.io.File file = new java.io.File("/home/user/Source/starck-xsl/spec.json");\r
-String jsonStr = org.apache.commons.io.FileUtils.readFileToString(file);\r
-\r
-System.out.println(jsonStr);\r
-\r
-org.json.JSONObject json = new org.json.JSONObject(jsonStr);\r
-String xml = org.json.XML.toString(json);\r
-\r
-System.out.println(xml);\r
-\r
index 38807e2..728d3c8 100644 (file)
@@ -1,3 +1,17 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
+
 # new feature
 # Tags: optional
 
index eacbf2f..106d623 100644 (file)
@@ -1,3 +1,17 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
+
 # new feature
 # Tags: optional
     
index 4b4891d..b827381 100644 (file)
@@ -1,3 +1,17 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
+
 # new feature
 # Tags: optional
     
index 1d9bfdf..94aed0d 100644 (file)
@@ -1,3 +1,17 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
+
 # new feature
 # Tags: optional
     
index a21b9b3..fdcc138 100644 (file)
@@ -1,3 +1,19 @@
+#
+#     Copyright (c) 2018 Orange
+#
+#     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.
+#
+
 # new feature
 # Tags: optional
     
index a42f9b7..52cc91f 100644 (file)
@@ -1,3 +1,17 @@
+#    Copyright (c) 2018 Orange
+#
+#    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.swagger: "2.0"
+
 # new feature
 # Tags: optional