diff --git a/pom.xml b/pom.xml
index fbd3b25dc38e..a973f46a86ec 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1005,7 +1005,9 @@
tools/ngui/static/bootstrap/*
tools/ngui/static/js/lib/*
tools/transifex/.tx/config
- ui/*
+ ui/src/assets/**
+ ui/public/**
+ ui/legacy/**
utils/testsmallfileinactive
diff --git a/ui/public/color.less b/ui/public/color.less
index c7e6b1b23ba2..58071f04b2f5 100644
--- a/ui/public/color.less
+++ b/ui/public/color.less
@@ -1,3 +1,19 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you 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.
@primary-color: #1890ff;
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
diff --git a/ui/public/example.html b/ui/public/example.html
index 594baf1c108e..df59d49086d3 100644
--- a/ui/public/example.html
+++ b/ui/public/example.html
@@ -1,3 +1,21 @@
+
diff --git a/ui/public/index.html b/ui/public/index.html
index 75896b4b5835..54ec6da25d10 100644
--- a/ui/public/index.html
+++ b/ui/public/index.html
@@ -1,3 +1,21 @@
+
diff --git a/ui/src/components/view/SettingsTab.vue b/ui/src/components/view/SettingsTab.vue
index 89bff1762013..5ee019974458 100644
--- a/ui/src/components/view/SettingsTab.vue
+++ b/ui/src/components/view/SettingsTab.vue
@@ -1,3 +1,20 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you 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.
+