This is an automated email from the ASF dual-hosted git repository.

jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git


The following commit(s) were added to refs/heads/master by this push:
     new 8abf3d552 chore: support check license header with RAT & fill the gaps 
(#1988)
8abf3d552 is described below

commit 8abf3d5524de3d3d5a97bbdce460a75652792b0d
Author: 青年 <[email protected]>
AuthorDate: Wed Oct 26 19:43:41 2022 +0800

    chore: support check license header with RAT & fill the gaps (#1988)
---
 Dockerfile                                         | 17 +++++++++
 hugegraph-api/pom.xml                              | 16 +++++++++
 .../com/baidu/hugegraph/api/gremlin/CypherAPI.java | 19 ++++++++++
 .../hugegraph/api/gremlin/GremlinQueryAPI.java     | 19 ++++++++++
 .../java/com/baidu/hugegraph/define/Checkable.java | 19 ++++++++++
 hugegraph-cassandra/pom.xml                        | 16 +++++++++
 hugegraph-core/pom.xml                             | 16 +++++++++
 .../com/baidu/hugegraph/backend/store/Shard.java   | 19 ++++++++--
 .../com/baidu/hugegraph/job/schema/SchemaJob.java  | 19 ++++++++++
 .../baidu/hugegraph/type/define/Directions.java    | 19 ++++++++++
 hugegraph-core/src/main/resources/proto/raft.proto | 19 ++++++++++
 .../backend/store/raft/rpc/RaftRequests.java       | 19 ++++++++++
 hugegraph-dist/pom.xml                             | 16 +++++++++
 .../src/assembly/descriptor/assembly.xml           | 18 +++++++++-
 hugegraph-dist/src/assembly/jenkins/build.sh       | 17 ++++++++-
 hugegraph-dist/src/assembly/jenkins/config.sh      | 17 ++++++++-
 hugegraph-dist/src/assembly/jenkins/deploy.sh      | 17 ++++++++-
 hugegraph-dist/src/assembly/jenkins/jenkins.sh     | 17 ++++++++-
 hugegraph-dist/src/assembly/jenkins/publish.sh     | 17 ++++++++-
 hugegraph-dist/src/assembly/jenkins/test.sh        | 17 ++++++++-
 .../src/assembly/static/bin/checksocket.sh         | 17 ++++++++-
 .../src/assembly/static/bin/dump-conf.sh           | 17 ++++++++-
 .../src/assembly/static/bin/dump-store.sh          | 17 ++++++++-
 .../src/assembly/static/bin/gremlin-console.sh     | 17 ++++++++-
 hugegraph-dist/src/assembly/static/bin/hugegraph   | 17 +++++++++
 .../src/assembly/static/bin/hugegraph-server.sh    | 17 ++++++++-
 .../src/assembly/static/bin/init-store.sh          | 17 ++++++++-
 hugegraph-dist/src/assembly/static/bin/install.sh  | 17 ++++++++-
 .../src/assembly/static/bin/monitor-hugegraph.sh   | 17 ++++++++-
 .../src/assembly/static/bin/raft-tools.sh          | 17 ++++++++-
 .../src/assembly/static/bin/start-hugegraph.sh     | 17 ++++++++-
 .../src/assembly/static/bin/start-monitor.sh       | 17 ++++++++-
 .../src/assembly/static/bin/stop-hugegraph.sh      | 19 ++++++++--
 .../src/assembly/static/bin/stop-monitor.sh        | 17 ++++++++-
 hugegraph-dist/src/assembly/static/bin/util.sh     | 17 ++++++++-
 .../src/assembly/static/conf/computer.yaml         | 16 +++++++++
 .../static/conf/gremlin-driver-settings.yaml       | 16 +++++++++
 .../src/assembly/static/conf/gremlin-server.yaml   | 16 +++++++++
 hugegraph-dist/src/assembly/static/conf/log4j2.xml | 15 ++++++++
 .../src/assembly/static/conf/remote-objects.yaml   | 16 +++++++++
 .../src/assembly/static/conf/remote.yaml           | 16 +++++++++
 .../assembly/static/scripts/empty-sample.groovy    | 18 ++++++++++
 .../src/assembly/static/scripts/example.groovy     | 20 ++++++++++-
 .../src/assembly/static/swagger-ui/index.html      | 16 +++++++++
 .../static/swagger-ui/oauth2-redirect.html         | 16 +++++++++
 .../static/swagger-ui/swagger-ui-bundle.js         | 20 ++++++++++-
 .../static/swagger-ui/swagger-ui-es-bundle-core.js | 20 ++++++++++-
 .../static/swagger-ui/swagger-ui-es-bundle.js      | 20 ++++++++++-
 .../swagger-ui/swagger-ui-standalone-preset.js     | 20 ++++++++++-
 .../src/assembly/static/swagger-ui/swagger-ui.css  | 20 ++++++++++-
 .../src/assembly/static/swagger-ui/swagger-ui.js   | 20 ++++++++++-
 hugegraph-dist/src/assembly/travis/build-report.sh | 17 ++++++++-
 .../assembly/travis/conf-raft1/gremlin-server.yaml | 16 +++++++++
 .../assembly/travis/conf-raft2/gremlin-server.yaml | 16 +++++++++
 .../assembly/travis/conf-raft3/gremlin-server.yaml | 16 +++++++++
 hugegraph-dist/src/assembly/travis/hbase-site.xml  | 16 +++++++++
 .../src/assembly/travis/install-backend.sh         | 17 ++++++++-
 .../src/assembly/travis/install-cassandra.sh       | 17 ++++++++-
 .../src/assembly/travis/install-hbase.sh           | 17 ++++++++-
 .../assembly/travis/install-mysql-via-docker.sh    | 17 ++++++++-
 .../src/assembly/travis/install-mysql.sh           | 17 ++++++++-
 .../travis/install-postgresql-via-docker.sh        | 17 ++++++++-
 .../src/assembly/travis/install-postgresql.sh      | 17 ++++++++-
 .../src/assembly/travis/install-scylladb.sh        | 17 ++++++++-
 hugegraph-dist/src/assembly/travis/maven.xml       | 16 +++++++++
 hugegraph-dist/src/assembly/travis/mysql.cnf       | 16 +++++++++
 .../src/assembly/travis/run-api-test-for-raft.sh   | 17 ++++++++-
 hugegraph-dist/src/assembly/travis/run-api-test.sh | 17 ++++++++-
 .../src/assembly/travis/run-core-test.sh           | 17 ++++++++-
 .../src/assembly/travis/run-tinkerpop-test.sh      | 17 ++++++++-
 .../src/assembly/travis/run-unit-test.sh           | 17 ++++++++-
 hugegraph-dist/src/assembly/travis/start-server.sh | 17 ++++++++-
 hugegraph-dist/src/assembly/travis/stop-server.sh  | 17 ++++++++-
 hugegraph-dist/src/main/resources/log4j2.xml       | 15 ++++++++
 hugegraph-example/pom.xml                          | 16 +++++++++
 hugegraph-example/src/main/resources/log4j2.xml    | 15 ++++++++
 hugegraph-hbase/pom.xml                            | 16 +++++++++
 hugegraph-mysql/pom.xml                            | 16 +++++++++
 .../backend/store/mysql/ResultSetWrapper.java      | 19 ++++++++++
 hugegraph-palo/pom.xml                             | 16 +++++++++
 hugegraph-postgresql/pom.xml                       | 16 +++++++++
 hugegraph-rocksdb/pom.xml                          | 16 +++++++++
 hugegraph-scylladb/pom.xml                         | 16 +++++++++
 hugegraph-style.xml                                | 16 +++++++++
 hugegraph-test/pom.xml                             | 16 +++++++++
 .../src/main/resources/fast-methods.filter         | 16 +++++++++
 hugegraph-test/src/main/resources/log4j2.xml       | 15 ++++++++
 hugegraph-test/src/main/resources/methods.filter   | 17 ++++++++-
 pom.xml                                            | 41 ++++++++++++++++++++++
 style/checkstyle.xml                               | 16 +++++++++
 90 files changed, 1513 insertions(+), 48 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 9889ca8a9..c94f0bbf9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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.
+#
+
 FROM ubuntu:xenial
 
 LABEL maintainer="HugeGraph Docker Maintainers <[email protected]>"
diff --git a/hugegraph-api/pom.xml b/hugegraph-api/pom.xml
index 9bca9d394..d7f2ce7b3 100644
--- a/hugegraph-api/pom.xml
+++ b/hugegraph-api/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git 
a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/gremlin/CypherAPI.java 
b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/gremlin/CypherAPI.java
index 15a0ca188..ac0bb63a5 100644
--- a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/gremlin/CypherAPI.java
+++ b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/gremlin/CypherAPI.java
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
+
 package com.baidu.hugegraph.api.gremlin;
 
 import org.opencypher.gremlin.translation.TranslationFacade;
diff --git 
a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/gremlin/GremlinQueryAPI.java
 
b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/gremlin/GremlinQueryAPI.java
index 5a072e095..6aa0b8b98 100644
--- 
a/hugegraph-api/src/main/java/com/baidu/hugegraph/api/gremlin/GremlinQueryAPI.java
+++ 
b/hugegraph-api/src/main/java/com/baidu/hugegraph/api/gremlin/GremlinQueryAPI.java
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
+
 package com.baidu.hugegraph.api.gremlin;
 
 import java.util.Map;
diff --git 
a/hugegraph-api/src/main/java/com/baidu/hugegraph/define/Checkable.java 
b/hugegraph-api/src/main/java/com/baidu/hugegraph/define/Checkable.java
index e4246955f..bbd5b27e3 100644
--- a/hugegraph-api/src/main/java/com/baidu/hugegraph/define/Checkable.java
+++ b/hugegraph-api/src/main/java/com/baidu/hugegraph/define/Checkable.java
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
+
 package com.baidu.hugegraph.define;
 
 public interface Checkable {
diff --git a/hugegraph-cassandra/pom.xml b/hugegraph-cassandra/pom.xml
index a71a1c58d..9d77189f0 100644
--- a/hugegraph-cassandra/pom.xml
+++ b/hugegraph-cassandra/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/hugegraph-core/pom.xml b/hugegraph-core/pom.xml
index f8b3f8a45..e3bd210ca 100644
--- a/hugegraph-core/pom.xml
+++ b/hugegraph-core/pom.xml
@@ -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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git 
a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/Shard.java 
b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/Shard.java
index ff5c3a7e5..261844a06 100644
--- a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/Shard.java
+++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/store/Shard.java
@@ -1,5 +1,20 @@
 /*
- * Copyright (C) 2018 Baidu, Inc. All Rights Reserved.
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
  */
 
 package com.baidu.hugegraph.backend.store;
@@ -53,4 +68,4 @@ public class Shard {
         return String.format("Shard{start=%s, end=%s, length=%s}",
                              this.start, this.end, this.length);
     }
-}
\ No newline at end of file
+}
diff --git 
a/hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/SchemaJob.java 
b/hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/SchemaJob.java
index cb3784133..afa6c3069 100644
--- a/hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/SchemaJob.java
+++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/job/schema/SchemaJob.java
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
+
 package com.baidu.hugegraph.job.schema;
 
 import java.lang.reflect.InvocationTargetException;
diff --git 
a/hugegraph-core/src/main/java/com/baidu/hugegraph/type/define/Directions.java 
b/hugegraph-core/src/main/java/com/baidu/hugegraph/type/define/Directions.java
index 9e685e25e..548325cf4 100644
--- 
a/hugegraph-core/src/main/java/com/baidu/hugegraph/type/define/Directions.java
+++ 
b/hugegraph-core/src/main/java/com/baidu/hugegraph/type/define/Directions.java
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
+
 package com.baidu.hugegraph.type.define;
 
 import org.apache.tinkerpop.gremlin.structure.Direction;
diff --git a/hugegraph-core/src/main/resources/proto/raft.proto 
b/hugegraph-core/src/main/resources/proto/raft.proto
index baee0b75d..fdfe107c3 100644
--- a/hugegraph-core/src/main/resources/proto/raft.proto
+++ b/hugegraph-core/src/main/resources/proto/raft.proto
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
+
 syntax="proto2";
 
 package com.baidu.hugegraph.backend.store.raft.rpc;
diff --git 
a/hugegraph-core/src/protobuf/java/com/baidu/hugegraph/backend/store/raft/rpc/RaftRequests.java
 
b/hugegraph-core/src/protobuf/java/com/baidu/hugegraph/backend/store/raft/rpc/RaftRequests.java
index 10b68604c..2b1da29ff 100644
--- 
a/hugegraph-core/src/protobuf/java/com/baidu/hugegraph/backend/store/raft/rpc/RaftRequests.java
+++ 
b/hugegraph-core/src/protobuf/java/com/baidu/hugegraph/backend/store/raft/rpc/RaftRequests.java
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
+
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: raft.proto
 
diff --git a/hugegraph-dist/pom.xml b/hugegraph-dist/pom.xml
index 627cdf0fd..2e66e4ebd 100644
--- a/hugegraph-dist/pom.xml
+++ b/hugegraph-dist/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/hugegraph-dist/src/assembly/descriptor/assembly.xml 
b/hugegraph-dist/src/assembly/descriptor/assembly.xml
index 24ff3ee76..75e4c623e 100644
--- a/hugegraph-dist/src/assembly/descriptor/assembly.xml
+++ b/hugegraph-dist/src/assembly/descriptor/assembly.xml
@@ -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.
+  -->
 <assembly>
     <id>distribution</id>
     <includeBaseDirectory>false</includeBaseDirectory>
@@ -47,4 +63,4 @@
         </dependencySet>
     </dependencySets>
 
-</assembly>
\ No newline at end of file
+</assembly>
diff --git a/hugegraph-dist/src/assembly/jenkins/build.sh 
b/hugegraph-dist/src/assembly/jenkins/build.sh
index eb5a28b22..c6cfb4641 100644
--- a/hugegraph-dist/src/assembly/jenkins/build.sh
+++ b/hugegraph-dist/src/assembly/jenkins/build.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 # Test
 if [ $ACTION = "test" ]; then
     . $SCRIPT_DIR/config.sh
diff --git a/hugegraph-dist/src/assembly/jenkins/config.sh 
b/hugegraph-dist/src/assembly/jenkins/config.sh
index bac61e2b0..22c17b593 100644
--- a/hugegraph-dist/src/assembly/jenkins/config.sh
+++ b/hugegraph-dist/src/assembly/jenkins/config.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 BASE_DIR="hugegraph-test/src/main/resources"
 ORIGIN_CONF="$BASE_DIR/hugegraph.properties"
 
diff --git a/hugegraph-dist/src/assembly/jenkins/deploy.sh 
b/hugegraph-dist/src/assembly/jenkins/deploy.sh
index 3b90c34a4..c1702a1b5 100644
--- a/hugegraph-dist/src/assembly/jenkins/deploy.sh
+++ b/hugegraph-dist/src/assembly/jenkins/deploy.sh
@@ -1,4 +1,19 @@
 #!/bin/bash
-
+#
+# 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.
+#
 echo "Start deploy..."
 echo "Finish deploy."
diff --git a/hugegraph-dist/src/assembly/jenkins/jenkins.sh 
b/hugegraph-dist/src/assembly/jenkins/jenkins.sh
index 6c52677f0..f926b6ef5 100644
--- a/hugegraph-dist/src/assembly/jenkins/jenkins.sh
+++ b/hugegraph-dist/src/assembly/jenkins/jenkins.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 # Backends contains [memory, rocksdb, cassandra, scylladb, mysql]
 export BACKEND=memory
 # The jenkins script store path
diff --git a/hugegraph-dist/src/assembly/jenkins/publish.sh 
b/hugegraph-dist/src/assembly/jenkins/publish.sh
index 74781276c..36319d587 100644
--- a/hugegraph-dist/src/assembly/jenkins/publish.sh
+++ b/hugegraph-dist/src/assembly/jenkins/publish.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 OUTPUT="hugegraph-release-*.tar.gz"
 
 echo "Start publish..."
diff --git a/hugegraph-dist/src/assembly/jenkins/test.sh 
b/hugegraph-dist/src/assembly/jenkins/test.sh
index 85a16e7d7..5c6a36d0f 100644
--- a/hugegraph-dist/src/assembly/jenkins/test.sh
+++ b/hugegraph-dist/src/assembly/jenkins/test.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 CONFIG_PATH=$1
 
 function serial_test() {
diff --git a/hugegraph-dist/src/assembly/static/bin/checksocket.sh 
b/hugegraph-dist/src/assembly/static/bin/checksocket.sh
index 3787b1734..437d13f6c 100755
--- a/hugegraph-dist/src/assembly/static/bin/checksocket.sh
+++ b/hugegraph-dist/src/assembly/static/bin/checksocket.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 # Returns the absolute path of this script regardless of symlinks
 abs_path() {
     SOURCE="${BASH_SOURCE[0]}"
diff --git a/hugegraph-dist/src/assembly/static/bin/dump-conf.sh 
b/hugegraph-dist/src/assembly/static/bin/dump-conf.sh
index 3c74d173d..4f27825c9 100755
--- a/hugegraph-dist/src/assembly/static/bin/dump-conf.sh
+++ b/hugegraph-dist/src/assembly/static/bin/dump-conf.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 abs_path() {
     SOURCE="${BASH_SOURCE[0]}"
     while [ -h "$SOURCE" ]; do
diff --git a/hugegraph-dist/src/assembly/static/bin/dump-store.sh 
b/hugegraph-dist/src/assembly/static/bin/dump-store.sh
index e13f4c0ca..0ddb7c1d7 100755
--- a/hugegraph-dist/src/assembly/static/bin/dump-store.sh
+++ b/hugegraph-dist/src/assembly/static/bin/dump-store.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 abs_path() {
     SOURCE="${BASH_SOURCE[0]}"
     while [ -h "$SOURCE" ]; do
diff --git a/hugegraph-dist/src/assembly/static/bin/gremlin-console.sh 
b/hugegraph-dist/src/assembly/static/bin/gremlin-console.sh
index 1a92abdb3..f403cda15 100755
--- a/hugegraph-dist/src/assembly/static/bin/gremlin-console.sh
+++ b/hugegraph-dist/src/assembly/static/bin/gremlin-console.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -e
 set -u
 
diff --git a/hugegraph-dist/src/assembly/static/bin/hugegraph 
b/hugegraph-dist/src/assembly/static/bin/hugegraph
index 4714b59e6..cc566c306 100644
--- a/hugegraph-dist/src/assembly/static/bin/hugegraph
+++ b/hugegraph-dist/src/assembly/static/bin/hugegraph
@@ -1,4 +1,21 @@
 #!/bin/bash
+#
+# 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.
+#
+
 #
 # hugegraph     This shell script takes care of starting and stopping
 #               HugeGraphServer.
diff --git a/hugegraph-dist/src/assembly/static/bin/hugegraph-server.sh 
b/hugegraph-dist/src/assembly/static/bin/hugegraph-server.sh
index 765f9a188..5b5c63304 100644
--- a/hugegraph-dist/src/assembly/static/bin/hugegraph-server.sh
+++ b/hugegraph-dist/src/assembly/static/bin/hugegraph-server.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 abs_path() {
     SOURCE="${BASH_SOURCE[0]}"
     while [ -h "$SOURCE" ]; do
diff --git a/hugegraph-dist/src/assembly/static/bin/init-store.sh 
b/hugegraph-dist/src/assembly/static/bin/init-store.sh
index d36e5e57f..bbe5e2cf1 100755
--- a/hugegraph-dist/src/assembly/static/bin/init-store.sh
+++ b/hugegraph-dist/src/assembly/static/bin/init-store.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 abs_path() {
     SOURCE="${BASH_SOURCE[0]}"
     while [[ -h "$SOURCE" ]]; do
diff --git a/hugegraph-dist/src/assembly/static/bin/install.sh 
b/hugegraph-dist/src/assembly/static/bin/install.sh
index 3c7557b83..5d4c06459 100755
--- a/hugegraph-dist/src/assembly/static/bin/install.sh
+++ b/hugegraph-dist/src/assembly/static/bin/install.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 # This script is used to install hugegraph as a system service
 # Usage: install.sh port
 
diff --git a/hugegraph-dist/src/assembly/static/bin/monitor-hugegraph.sh 
b/hugegraph-dist/src/assembly/static/bin/monitor-hugegraph.sh
index 3ec979a6a..f2a191c89 100755
--- a/hugegraph-dist/src/assembly/static/bin/monitor-hugegraph.sh
+++ b/hugegraph-dist/src/assembly/static/bin/monitor-hugegraph.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 function abs_path() {
     SOURCE="${BASH_SOURCE[0]}"
     while [ -h "$SOURCE" ]; do
diff --git a/hugegraph-dist/src/assembly/static/bin/raft-tools.sh 
b/hugegraph-dist/src/assembly/static/bin/raft-tools.sh
index 34a7582dc..bed0149c6 100755
--- a/hugegraph-dist/src/assembly/static/bin/raft-tools.sh
+++ b/hugegraph-dist/src/assembly/static/bin/raft-tools.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 export LANG=zh_CN.UTF-8
 set -e
 
diff --git a/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh 
b/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh
index 91836eab2..a0f2990f6 100644
--- a/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh
+++ b/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 OPEN_MONITOR="false"
 OPEN_SECURITY_CHECK="true"
 VERBOSE=""
diff --git a/hugegraph-dist/src/assembly/static/bin/start-monitor.sh 
b/hugegraph-dist/src/assembly/static/bin/start-monitor.sh
index 35b120f4a..4925dfd11 100755
--- a/hugegraph-dist/src/assembly/static/bin/start-monitor.sh
+++ b/hugegraph-dist/src/assembly/static/bin/start-monitor.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 function abs_path() {
     SOURCE="${BASH_SOURCE[0]}"
     while [ -h "$SOURCE" ]; do
diff --git a/hugegraph-dist/src/assembly/static/bin/stop-hugegraph.sh 
b/hugegraph-dist/src/assembly/static/bin/stop-hugegraph.sh
index be0958cd2..751180e19 100755
--- a/hugegraph-dist/src/assembly/static/bin/stop-hugegraph.sh
+++ b/hugegraph-dist/src/assembly/static/bin/stop-hugegraph.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 CLOSE_MONITOR="true"
 
 while getopts "m:" arg; do
@@ -52,4 +67,4 @@ kill_process_and_wait "HugeGraphServer" "$PID" 
"$SERVER_SHUTDOWN_TIMEOUT_S"
 
 if [ $? -eq 0 ]; then
     rm "$PID_FILE"
-fi
\ No newline at end of file
+fi
diff --git a/hugegraph-dist/src/assembly/static/bin/stop-monitor.sh 
b/hugegraph-dist/src/assembly/static/bin/stop-monitor.sh
index 2464f9e8a..19166b329 100755
--- a/hugegraph-dist/src/assembly/static/bin/stop-monitor.sh
+++ b/hugegraph-dist/src/assembly/static/bin/stop-monitor.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 function abs_path() {
     SOURCE="${BASH_SOURCE[0]}"
     while [ -h "$SOURCE" ]; do
diff --git a/hugegraph-dist/src/assembly/static/bin/util.sh 
b/hugegraph-dist/src/assembly/static/bin/util.sh
index 178d4ddbb..e079dd11b 100755
--- a/hugegraph-dist/src/assembly/static/bin/util.sh
+++ b/hugegraph-dist/src/assembly/static/bin/util.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 function command_available() {
     local cmd=$1
     if [ `command -v $cmd >/dev/null 2>&1` ]; then
diff --git a/hugegraph-dist/src/assembly/static/conf/computer.yaml 
b/hugegraph-dist/src/assembly/static/conf/computer.yaml
index ef1518173..1c69388bb 100644
--- a/hugegraph-dist/src/assembly/static/conf/computer.yaml
+++ b/hugegraph-dist/src/assembly/static/conf/computer.yaml
@@ -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.
+#
 # common parameters
 common: {
   worker_heap: 10000,
diff --git 
a/hugegraph-dist/src/assembly/static/conf/gremlin-driver-settings.yaml 
b/hugegraph-dist/src/assembly/static/conf/gremlin-driver-settings.yaml
index 0caed62a7..7e118f3ab 100644
--- a/hugegraph-dist/src/assembly/static/conf/gremlin-driver-settings.yaml
+++ b/hugegraph-dist/src/assembly/static/conf/gremlin-driver-settings.yaml
@@ -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.
+#
 hosts: [localhost]
 port: 8182
 serializer: {
diff --git a/hugegraph-dist/src/assembly/static/conf/gremlin-server.yaml 
b/hugegraph-dist/src/assembly/static/conf/gremlin-server.yaml
index 44fbb4668..480ddf479 100644
--- a/hugegraph-dist/src/assembly/static/conf/gremlin-server.yaml
+++ b/hugegraph-dist/src/assembly/static/conf/gremlin-server.yaml
@@ -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.
+#
 # host and port of gremlin server, need to be consistent with host and port in 
rest-server.properties
 #host: 127.0.0.1
 #port: 8182
diff --git a/hugegraph-dist/src/assembly/static/conf/log4j2.xml 
b/hugegraph-dist/src/assembly/static/conf/log4j2.xml
index fae6721d8..4d05b9435 100644
--- a/hugegraph-dist/src/assembly/static/conf/log4j2.xml
+++ b/hugegraph-dist/src/assembly/static/conf/log4j2.xml
@@ -1,5 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <!-- Config will be auto loaded every 60s -->
 <configuration status="error" monitorInterval="60">
     <properties>
diff --git a/hugegraph-dist/src/assembly/static/conf/remote-objects.yaml 
b/hugegraph-dist/src/assembly/static/conf/remote-objects.yaml
index 0caed62a7..7e118f3ab 100644
--- a/hugegraph-dist/src/assembly/static/conf/remote-objects.yaml
+++ b/hugegraph-dist/src/assembly/static/conf/remote-objects.yaml
@@ -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.
+#
 hosts: [localhost]
 port: 8182
 serializer: {
diff --git a/hugegraph-dist/src/assembly/static/conf/remote.yaml 
b/hugegraph-dist/src/assembly/static/conf/remote.yaml
index 0caed62a7..7e118f3ab 100644
--- a/hugegraph-dist/src/assembly/static/conf/remote.yaml
+++ b/hugegraph-dist/src/assembly/static/conf/remote.yaml
@@ -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.
+#
 hosts: [localhost]
 port: 8182
 serializer: {
diff --git a/hugegraph-dist/src/assembly/static/scripts/empty-sample.groovy 
b/hugegraph-dist/src/assembly/static/scripts/empty-sample.groovy
index 83b70a940..7a247fee8 100644
--- a/hugegraph-dist/src/assembly/static/scripts/empty-sample.groovy
+++ b/hugegraph-dist/src/assembly/static/scripts/empty-sample.groovy
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 import org.apache.tinkerpop.gremlin.server.util.LifeCycleHook
 
 // an init script that returns a Map allows explicit setting of global 
bindings.
diff --git a/hugegraph-dist/src/assembly/static/scripts/example.groovy 
b/hugegraph-dist/src/assembly/static/scripts/example.groovy
index 24da4c1eb..804238d2b 100644
--- a/hugegraph-dist/src/assembly/static/scripts/example.groovy
+++ b/hugegraph-dist/src/assembly/static/scripts/example.groovy
@@ -1,3 +1,21 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 import com.baidu.hugegraph.HugeFactory
 import com.baidu.hugegraph.dist.RegisterUtil
 import org.apache.tinkerpop.gremlin.structure.T
@@ -48,4 +66,4 @@ graph.tx().commit();
 g = graph.traversal();
 
 System.out.println(">>>> query all vertices: size=" + g.V().toList().size());
-System.out.println(">>>> query all edges: size=" + g.E().toList().size());
\ No newline at end of file
+System.out.println(">>>> query all edges: size=" + g.E().toList().size());
diff --git a/hugegraph-dist/src/assembly/static/swagger-ui/index.html 
b/hugegraph-dist/src/assembly/static/swagger-ui/index.html
index 71bcf9999..198988a09 100644
--- a/hugegraph-dist/src/assembly/static/swagger-ui/index.html
+++ b/hugegraph-dist/src/assembly/static/swagger-ui/index.html
@@ -1,4 +1,20 @@
 <!-- HTML for static distribution bundle build -->
+<!--
+  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.
+  -->
 <!DOCTYPE html>
 <html lang="en">
   <head>
diff --git a/hugegraph-dist/src/assembly/static/swagger-ui/oauth2-redirect.html 
b/hugegraph-dist/src/assembly/static/swagger-ui/oauth2-redirect.html
index 64b171f7d..f5498a430 100644
--- a/hugegraph-dist/src/assembly/static/swagger-ui/oauth2-redirect.html
+++ b/hugegraph-dist/src/assembly/static/swagger-ui/oauth2-redirect.html
@@ -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.
+  -->
 <!doctype html>
 <html lang="en-US">
 <head>
diff --git a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-bundle.js 
b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-bundle.js
index 8ce37c921..0b975b8dd 100644
--- a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-bundle.js
+++ b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-bundle.js
@@ -1,3 +1,21 @@
 /*! For license information please see swagger-ui-bundle.js.LICENSE.txt */
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 !function(e,t){"object"==typeof exports&&"object"==typeof 
module?module.exports=t(function(){try{return 
require("esprima")}catch(e){}}()):"function"==typeof 
define&&define.amd?define(["esprima"],t):"object"==typeof 
exports?exports.SwaggerUIBundle=t(function(){try{return 
require("esprima")}catch(e){}}()):e.SwaggerUIBundle=t(e.esprima)}(this,(function(e){return
 function(e){var t={};function n(r){if(t[r])return t[r].exports;var 
o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exp [...]
᠎"!="​…᠎"[e]()||o[e].name!==e}))}},function(e,t,n){var 
r=n(94),o=n(292);e.exports=function(e){return 
o(r(e).toLowerCase())}},function(e,t,n){var 
r=n(133),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void
 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var 
r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete 
e[s]),o}},function(e,t){var 
n=Object.prototype.toString;e.exports=function(e){return 
n.call(e)}},function(e,t,n){var r=n(695),o=n(417),a=n(696),i [...]
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function x(e){return 
e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var
 w=new Array(256),E=new 
Array(256),S=0;S<256;S++)w[S]=_(S)?1:0,E[S]=_(S);function 
C(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typ
 [...]
\u2028\u2029".indexOf(this.buffer.charAt(o-1));)if(o-=1,this.position-o>t/2-1){n="
 ... ",o+=5;break}for(a="",i=this.position;i<this.buffer.length&&-1==="\0\r\n…
\u2028\u2029".indexOf(this.buffer.charAt(i));)if((i+=1)-this.position>t/2-1){a="
 ... ",i-=5;break}return s=this.buffer.slice(o,i),r.repeat(" 
",e)+n+s+a+"\n"+r.repeat(" 
",e+this.position-o+n.length)+"^"},o.prototype.toString=function(e){var 
t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line 
"+(this.line+1)+", column 
"+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=o},function(e,t,n){"use
 strict";var r=n(48);e.exports=new r("tag:yaml.org,2002:str",{kind:"sc [...]
-//# sourceMappingURL=swagger-ui-bundle.js.map
\ No newline at end of file
+//# sourceMappingURL=swagger-ui-bundle.js.map
diff --git 
a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-es-bundle-core.js 
b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-es-bundle-core.js
index 96c03cdc6..1ccfc3b92 100644
--- a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-es-bundle-core.js
+++ b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-es-bundle-core.js
@@ -1,3 +1,21 @@
 /*! For license information please see 
swagger-ui-es-bundle-core.js.LICENSE.txt */
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 module.exports=function(e){var t={};function n(r){if(t[r])return 
t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return 
e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return 
n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof
 
Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return
 e; [...]
᠎"!="​…᠎"[e]()||a[e].name!==e}))}},function(e,t,n){var 
r=n(77),a=n(217);e.exports=function(e){return 
a(r(e).toLowerCase())}},function(e,t,n){var 
r=n(107),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void
 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var 
r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete 
e[s]),a}},function(e,t){var 
n=Object.prototype.toString;e.exports=function(e){return 
n.call(e)}},function(e,t,n){var r=n(539),a=n(331),o=n(540),i [...]
-//# sourceMappingURL=swagger-ui-es-bundle-core.js.map
\ No newline at end of file
+//# sourceMappingURL=swagger-ui-es-bundle-core.js.map
diff --git 
a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-es-bundle.js 
b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-es-bundle.js
index 539cfeb96..5e23266bb 100644
--- a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-es-bundle.js
+++ b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-es-bundle.js
@@ -1,3 +1,21 @@
 /*! For license information please see swagger-ui-es-bundle.js.LICENSE.txt */
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 module.exports=function(e){var t={};function n(r){if(t[r])return 
t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return 
e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return 
n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof
 
Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return
 e; [...]
᠎"!="​…᠎"[e]()||o[e].name!==e}))}},function(e,t,n){var 
r=n(94),o=n(292);e.exports=function(e){return 
o(r(e).toLowerCase())}},function(e,t,n){var 
r=n(133),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void
 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var 
r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete 
e[s]),o}},function(e,t){var 
n=Object.prototype.toString;e.exports=function(e){return 
n.call(e)}},function(e,t,n){var r=n(695),o=n(417),a=n(696),i [...]
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function x(e){return 
e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var
 w=new Array(256),E=new 
Array(256),S=0;S<256;S++)w[S]=_(S)?1:0,E[S]=_(S);function 
C(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typ
 [...]
\u2028\u2029".indexOf(this.buffer.charAt(o-1));)if(o-=1,this.position-o>t/2-1){n="
 ... ",o+=5;break}for(a="",i=this.position;i<this.buffer.length&&-1==="\0\r\n…
\u2028\u2029".indexOf(this.buffer.charAt(i));)if((i+=1)-this.position>t/2-1){a="
 ... ",i-=5;break}return s=this.buffer.slice(o,i),r.repeat(" 
",e)+n+s+a+"\n"+r.repeat(" 
",e+this.position-o+n.length)+"^"},o.prototype.toString=function(e){var 
t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line 
"+(this.line+1)+", column 
"+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=o},function(e,t,n){"use
 strict";var r=n(48);e.exports=new r("tag:yaml.org,2002:str",{kind:"sc [...]
-//# sourceMappingURL=swagger-ui-es-bundle.js.map
\ No newline at end of file
+//# sourceMappingURL=swagger-ui-es-bundle.js.map
diff --git 
a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-standalone-preset.js 
b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-standalone-preset.js
index 6ed2ec97d..1cccf9da5 100644
--- 
a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-standalone-preset.js
+++ 
b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui-standalone-preset.js
@@ -1,3 +1,21 @@
 /*! For license information please see 
swagger-ui-standalone-preset.js.LICENSE.txt */
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 !function(t,e){"object"==typeof exports&&"object"==typeof 
module?module.exports=e(function(){try{return 
require("esprima")}catch(t){}}()):"function"==typeof 
define&&define.amd?define(["esprima"],e):"object"==typeof 
exports?exports.SwaggerUIStandalonePreset=e(function(){try{return 
require("esprima")}catch(t){}}()):t.SwaggerUIStandalonePreset=e(t.esprima)}(this,(function(t){return
 function(t){var e={};function n(r){if(e[r])return e[r].exports;var 
i=e[r]={i:r,l:!1,exports:{}};return t[r].ca [...]
᠎"!="​…᠎"[t]()||i[t].name!==t}))}},function(t,e,n){var 
r=n(66),i=n(147);t.exports=function(t){return 
i(r(t).toLowerCase())}},function(t,e,n){var 
r=n(92),i=n(423),o=n(23),u=n(93),s=r?r.prototype:void 0,a=s?s.toString:void 
0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return 
i(e,t)+"";if(u(e))return a?a.call(e):"";var 
n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},function(t,e){t.exports=function(t,e){for(var
 n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}}, [...]
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function _(t){return 
t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var
 L=new Array(256),x=new 
Array(256),b=0;b<256;b++)L[b]=m(b)?1:0,x[b]=m(b);function 
j(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||s,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typ
 [...]
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>e/2-1){n="
 ... ",i+=5;break}for(o="",u=this.position;u<this.buffer.length&&-1==="\0\r\n…
\u2028\u2029".indexOf(this.buffer.charAt(u));)if((u+=1)-this.position>e/2-1){o="
 ... ",u-=5;break}return s=this.buffer.slice(i,u),r.repeat(" 
",t)+n+s+o+"\n"+r.repeat(" 
",t+this.position-i+n.length)+"^"},i.prototype.toString=function(t){var 
e,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line 
"+(this.line+1)+", column 
"+(this.column+1),t||(e=this.getSnippet())&&(n+=":\n"+e),n},t.exports=i},function(t,e,n){"use
 strict";var r=n(7);t.exports=new r("tag:yaml.org,2002:str",{kind:"sca [...]
-//# sourceMappingURL=swagger-ui-standalone-preset.js.map
\ No newline at end of file
+//# sourceMappingURL=swagger-ui-standalone-preset.js.map
diff --git a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui.css 
b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui.css
index 5ba8106f1..daa0ecf59 100644
--- a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui.css
+++ b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui.css
@@ -1,4 +1,22 @@
 .swagger-ui{color:#3b4151;
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
   /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css 
*/font-family:sans-serif}.swagger-ui 
html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.swagger-ui
 body{margin:0}.swagger-ui article,.swagger-ui aside,.swagger-ui 
footer,.swagger-ui header,.swagger-ui nav,.swagger-ui 
section{display:block}.swagger-ui h1{font-size:2em;margin:.67em 0}.swagger-ui 
figcaption,.swagger-ui figure,.swagger-ui main{display:block}.swagger-ui 
figure{margin:1em 40 [...]
 
-/*# sourceMappingURL=swagger-ui.css.map*/
\ No newline at end of file
+/*# sourceMappingURL=swagger-ui.css.map*/
diff --git a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui.js 
b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui.js
index 9e827fb71..13496ca6a 100644
--- a/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui.js
+++ b/hugegraph-dist/src/assembly/static/swagger-ui/swagger-ui.js
@@ -1,3 +1,21 @@
 /*! For license information please see swagger-ui.js.LICENSE.txt */
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
 !function(e,t){"object"==typeof exports&&"object"==typeof 
module?module.exports=t():"function"==typeof 
define&&define.amd?define([],t):"object"==typeof 
exports?exports.SwaggerUICore=t():e.SwaggerUICore=t()}(this,(function(){return 
function(e){var t={};function n(r){if(t[r])return t[r].exports;var 
a=t[r]={i:r,l:!1,exports:{}};return 
e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return 
n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=fun
 [...]
᠎"!="​…᠎"[e]()||a[e].name!==e}))}},function(e,t,n){var 
r=n(77),a=n(217);e.exports=function(e){return 
a(r(e).toLowerCase())}},function(e,t,n){var 
r=n(107),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void
 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var 
r=!0}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete 
e[s]),a}},function(e,t){var 
n=Object.prototype.toString;e.exports=function(e){return 
n.call(e)}},function(e,t,n){var r=n(539),a=n(331),o=n(540),i [...]
-//# sourceMappingURL=swagger-ui.js.map
\ No newline at end of file
+//# sourceMappingURL=swagger-ui.js.map
diff --git a/hugegraph-dist/src/assembly/travis/build-report.sh 
b/hugegraph-dist/src/assembly/travis/build-report.sh
index fcf3fabcd..015311808 100755
--- a/hugegraph-dist/src/assembly/travis/build-report.sh
+++ b/hugegraph-dist/src/assembly/travis/build-report.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 BACKEND=$1
diff --git a/hugegraph-dist/src/assembly/travis/conf-raft1/gremlin-server.yaml 
b/hugegraph-dist/src/assembly/travis/conf-raft1/gremlin-server.yaml
index e10207140..88d750547 100644
--- a/hugegraph-dist/src/assembly/travis/conf-raft1/gremlin-server.yaml
+++ b/hugegraph-dist/src/assembly/travis/conf-raft1/gremlin-server.yaml
@@ -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.
+#
 # host and port of gremlin server, need to be consistent with host and port in 
rest-server.properties
 #host: 127.0.0.1
 port: 8181
diff --git a/hugegraph-dist/src/assembly/travis/conf-raft2/gremlin-server.yaml 
b/hugegraph-dist/src/assembly/travis/conf-raft2/gremlin-server.yaml
index dcac0fa65..f7a567c0e 100644
--- a/hugegraph-dist/src/assembly/travis/conf-raft2/gremlin-server.yaml
+++ b/hugegraph-dist/src/assembly/travis/conf-raft2/gremlin-server.yaml
@@ -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.
+#
 # host and port of gremlin server
 #host: 127.0.0.1
 port: 8182
diff --git a/hugegraph-dist/src/assembly/travis/conf-raft3/gremlin-server.yaml 
b/hugegraph-dist/src/assembly/travis/conf-raft3/gremlin-server.yaml
index 10ea42661..702777693 100644
--- a/hugegraph-dist/src/assembly/travis/conf-raft3/gremlin-server.yaml
+++ b/hugegraph-dist/src/assembly/travis/conf-raft3/gremlin-server.yaml
@@ -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.
+#
 # host and port of gremlin server
 #host: 127.0.0.1
 port: 8183
diff --git a/hugegraph-dist/src/assembly/travis/hbase-site.xml 
b/hugegraph-dist/src/assembly/travis/hbase-site.xml
index 012c28f81..d8a097818 100644
--- a/hugegraph-dist/src/assembly/travis/hbase-site.xml
+++ b/hugegraph-dist/src/assembly/travis/hbase-site.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+  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.
+  -->
 <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
 <configuration>
     <property>
diff --git a/hugegraph-dist/src/assembly/travis/install-backend.sh 
b/hugegraph-dist/src/assembly/travis/install-backend.sh
index e5d4f0323..05a4a3f9a 100755
--- a/hugegraph-dist/src/assembly/travis/install-backend.sh
+++ b/hugegraph-dist/src/assembly/travis/install-backend.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 if [[ $# -ne 1 ]]; then
diff --git a/hugegraph-dist/src/assembly/travis/install-cassandra.sh 
b/hugegraph-dist/src/assembly/travis/install-cassandra.sh
index 7734e7827..3fa088744 100755
--- a/hugegraph-dist/src/assembly/travis/install-cassandra.sh
+++ b/hugegraph-dist/src/assembly/travis/install-cassandra.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 TRAVIS_DIR=`dirname $0`
diff --git a/hugegraph-dist/src/assembly/travis/install-hbase.sh 
b/hugegraph-dist/src/assembly/travis/install-hbase.sh
index 700254890..b8e7ad47a 100755
--- a/hugegraph-dist/src/assembly/travis/install-hbase.sh
+++ b/hugegraph-dist/src/assembly/travis/install-hbase.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 TRAVIS_DIR=`dirname $0`
diff --git a/hugegraph-dist/src/assembly/travis/install-mysql-via-docker.sh 
b/hugegraph-dist/src/assembly/travis/install-mysql-via-docker.sh
index 25cdf9f67..06898ad97 100755
--- a/hugegraph-dist/src/assembly/travis/install-mysql-via-docker.sh
+++ b/hugegraph-dist/src/assembly/travis/install-mysql-via-docker.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 TRAVIS_DIR=$(dirname "$0")
diff --git a/hugegraph-dist/src/assembly/travis/install-mysql.sh 
b/hugegraph-dist/src/assembly/travis/install-mysql.sh
index 0cd53536e..8001182ef 100755
--- a/hugegraph-dist/src/assembly/travis/install-mysql.sh
+++ b/hugegraph-dist/src/assembly/travis/install-mysql.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 TRAVIS_DIR=$(dirname "$0")
diff --git 
a/hugegraph-dist/src/assembly/travis/install-postgresql-via-docker.sh 
b/hugegraph-dist/src/assembly/travis/install-postgresql-via-docker.sh
index bd4e1f90b..da44a8a7b 100755
--- a/hugegraph-dist/src/assembly/travis/install-postgresql-via-docker.sh
+++ b/hugegraph-dist/src/assembly/travis/install-postgresql-via-docker.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 TRAVIS_DIR=$(dirname "$0")
diff --git a/hugegraph-dist/src/assembly/travis/install-postgresql.sh 
b/hugegraph-dist/src/assembly/travis/install-postgresql.sh
index 47bc6fe1e..c769f0056 100755
--- a/hugegraph-dist/src/assembly/travis/install-postgresql.sh
+++ b/hugegraph-dist/src/assembly/travis/install-postgresql.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 TRAVIS_DIR=$(dirname "$0")
diff --git a/hugegraph-dist/src/assembly/travis/install-scylladb.sh 
b/hugegraph-dist/src/assembly/travis/install-scylladb.sh
index 1933baf5e..2f2c745fa 100755
--- a/hugegraph-dist/src/assembly/travis/install-scylladb.sh
+++ b/hugegraph-dist/src/assembly/travis/install-scylladb.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 TRAVIS_DIR=`dirname $0`
diff --git a/hugegraph-dist/src/assembly/travis/maven.xml 
b/hugegraph-dist/src/assembly/travis/maven.xml
index d77a0f3fd..550716769 100644
--- a/hugegraph-dist/src/assembly/travis/maven.xml
+++ b/hugegraph-dist/src/assembly/travis/maven.xml
@@ -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.
+  -->
 <settings>
   <servers>
     <server>
diff --git a/hugegraph-dist/src/assembly/travis/mysql.cnf 
b/hugegraph-dist/src/assembly/travis/mysql.cnf
index 2add851e7..7eb0a4075 100644
--- a/hugegraph-dist/src/assembly/travis/mysql.cnf
+++ b/hugegraph-dist/src/assembly/travis/mysql.cnf
@@ -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.
+#
 # Overrides the mysql defaults in /etc/mysql/my.cnf
 # Reference from 
https://github.com/mozilla/treeherder/blob/master/vagrant/mysql.cnf
 
diff --git a/hugegraph-dist/src/assembly/travis/run-api-test-for-raft.sh 
b/hugegraph-dist/src/assembly/travis/run-api-test-for-raft.sh
index 75819ee13..9bd2caf40 100755
--- a/hugegraph-dist/src/assembly/travis/run-api-test-for-raft.sh
+++ b/hugegraph-dist/src/assembly/travis/run-api-test-for-raft.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 BACKEND=$1
diff --git a/hugegraph-dist/src/assembly/travis/run-api-test.sh 
b/hugegraph-dist/src/assembly/travis/run-api-test.sh
index 4de8d6189..3a0f8ad3e 100755
--- a/hugegraph-dist/src/assembly/travis/run-api-test.sh
+++ b/hugegraph-dist/src/assembly/travis/run-api-test.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 BACKEND=$1
diff --git a/hugegraph-dist/src/assembly/travis/run-core-test.sh 
b/hugegraph-dist/src/assembly/travis/run-core-test.sh
index 0207ff209..8accb1953 100755
--- a/hugegraph-dist/src/assembly/travis/run-core-test.sh
+++ b/hugegraph-dist/src/assembly/travis/run-core-test.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 BACKEND=$1
diff --git a/hugegraph-dist/src/assembly/travis/run-tinkerpop-test.sh 
b/hugegraph-dist/src/assembly/travis/run-tinkerpop-test.sh
index 92c27ed80..07b238c5a 100755
--- a/hugegraph-dist/src/assembly/travis/run-tinkerpop-test.sh
+++ b/hugegraph-dist/src/assembly/travis/run-tinkerpop-test.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 BACKEND=$1
diff --git a/hugegraph-dist/src/assembly/travis/run-unit-test.sh 
b/hugegraph-dist/src/assembly/travis/run-unit-test.sh
index 8991d986d..a3b2a17ff 100755
--- a/hugegraph-dist/src/assembly/travis/run-unit-test.sh
+++ b/hugegraph-dist/src/assembly/travis/run-unit-test.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 BACKEND=$1
diff --git a/hugegraph-dist/src/assembly/travis/start-server.sh 
b/hugegraph-dist/src/assembly/travis/start-server.sh
index 6476d2eac..0efcea8a5 100755
--- a/hugegraph-dist/src/assembly/travis/start-server.sh
+++ b/hugegraph-dist/src/assembly/travis/start-server.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 HOME_DIR=$(pwd)
diff --git a/hugegraph-dist/src/assembly/travis/stop-server.sh 
b/hugegraph-dist/src/assembly/travis/stop-server.sh
index 584ef27c5..8850f7e59 100755
--- a/hugegraph-dist/src/assembly/travis/stop-server.sh
+++ b/hugegraph-dist/src/assembly/travis/stop-server.sh
@@ -1,5 +1,20 @@
 #!/bin/bash
-
+#
+# 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.
+#
 set -ev
 
 BASE_DIR=$1
diff --git a/hugegraph-dist/src/main/resources/log4j2.xml 
b/hugegraph-dist/src/main/resources/log4j2.xml
index 5e8b126a9..c64b8d8f5 100644
--- a/hugegraph-dist/src/main/resources/log4j2.xml
+++ b/hugegraph-dist/src/main/resources/log4j2.xml
@@ -1,5 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <!-- Config will be auto loaded every 60s -->
 <configuration status="error" monitorInterval="60">
     <properties>
diff --git a/hugegraph-example/pom.xml b/hugegraph-example/pom.xml
index c22169b55..ac8bb5aca 100644
--- a/hugegraph-example/pom.xml
+++ b/hugegraph-example/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/hugegraph-example/src/main/resources/log4j2.xml 
b/hugegraph-example/src/main/resources/log4j2.xml
index 20d5890f9..ec71cf916 100644
--- a/hugegraph-example/src/main/resources/log4j2.xml
+++ b/hugegraph-example/src/main/resources/log4j2.xml
@@ -1,5 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <!-- Config will be auto loaded every 60s -->
 <configuration status="error" monitorInterval="60">
     <properties>
diff --git a/hugegraph-hbase/pom.xml b/hugegraph-hbase/pom.xml
index 93a523d2e..51f77ac6b 100644
--- a/hugegraph-hbase/pom.xml
+++ b/hugegraph-hbase/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/hugegraph-mysql/pom.xml b/hugegraph-mysql/pom.xml
index 23a053c51..ee82b57d3 100644
--- a/hugegraph-mysql/pom.xml
+++ b/hugegraph-mysql/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git 
a/hugegraph-mysql/src/main/java/com/baidu/hugegraph/backend/store/mysql/ResultSetWrapper.java
 
b/hugegraph-mysql/src/main/java/com/baidu/hugegraph/backend/store/mysql/ResultSetWrapper.java
index 413ecb01f..b472f2cad 100644
--- 
a/hugegraph-mysql/src/main/java/com/baidu/hugegraph/backend/store/mysql/ResultSetWrapper.java
+++ 
b/hugegraph-mysql/src/main/java/com/baidu/hugegraph/backend/store/mysql/ResultSetWrapper.java
@@ -1,3 +1,22 @@
+/*
+ * Copyright 2017 HugeGraph Authors
+ *
+ * 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.
+ */
+
 package com.baidu.hugegraph.backend.store.mysql;
 
 import com.baidu.hugegraph.backend.BackendException;
diff --git a/hugegraph-palo/pom.xml b/hugegraph-palo/pom.xml
index a001a4798..09e36e1cc 100644
--- a/hugegraph-palo/pom.xml
+++ b/hugegraph-palo/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/hugegraph-postgresql/pom.xml b/hugegraph-postgresql/pom.xml
index 72086fff2..a0e22078b 100644
--- a/hugegraph-postgresql/pom.xml
+++ b/hugegraph-postgresql/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/hugegraph-rocksdb/pom.xml b/hugegraph-rocksdb/pom.xml
index dbcfc66c0..70be091d4 100644
--- a/hugegraph-rocksdb/pom.xml
+++ b/hugegraph-rocksdb/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/hugegraph-scylladb/pom.xml b/hugegraph-scylladb/pom.xml
index 4897d3b5b..bb9f80a70 100644
--- a/hugegraph-scylladb/pom.xml
+++ b/hugegraph-scylladb/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/hugegraph-style.xml b/hugegraph-style.xml
index 4bb2ef4ca..7b4523951 100644
--- a/hugegraph-style.xml
+++ b/hugegraph-style.xml
@@ -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.
+  -->
 <code_scheme name="hugegraph-style" version="173">
   <option name="LINE_SEPARATOR" value="&#xA;" />
   <option name="RIGHT_MARGIN" value="80" />
diff --git a/hugegraph-test/pom.xml b/hugegraph-test/pom.xml
index 19ff26ea2..72dc03b75 100644
--- a/hugegraph-test/pom.xml
+++ b/hugegraph-test/pom.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
diff --git a/hugegraph-test/src/main/resources/fast-methods.filter 
b/hugegraph-test/src/main/resources/fast-methods.filter
index 8aecfa653..fa5231062 100644
--- a/hugegraph-test/src/main/resources/fast-methods.filter
+++ b/hugegraph-test/src/main/resources/fast-methods.filter
@@ -1,4 +1,20 @@
 # Proper format is "TestClass.testMethodName: ignore reason"
+#
+# 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.
+#
 
 ####################    structure suite    ####################
 
diff --git a/hugegraph-test/src/main/resources/log4j2.xml 
b/hugegraph-test/src/main/resources/log4j2.xml
index d837fe1a6..7810ea470 100644
--- a/hugegraph-test/src/main/resources/log4j2.xml
+++ b/hugegraph-test/src/main/resources/log4j2.xml
@@ -1,5 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <!-- Config will be auto loaded every 60s -->
 <configuration status="error" monitorInterval="60">
     <properties>
diff --git a/hugegraph-test/src/main/resources/methods.filter 
b/hugegraph-test/src/main/resources/methods.filter
index f18969b56..b106cb9e7 100644
--- a/hugegraph-test/src/main/resources/methods.filter
+++ b/hugegraph-test/src/main/resources/methods.filter
@@ -1,5 +1,20 @@
 # Proper format is "TestClass.testMethodName: ignore reason"
-
+#
+# 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.
+#
 ####################    structure suite    ####################
 
 ## automatic ID for edges
diff --git a/pom.xml b/pom.xml
index 6b3d439bd..749499b33 100644
--- a/pom.xml
+++ b/pom.xml
@@ -386,6 +386,47 @@
                         </filesets>
                     </configuration>
                 </plugin>
+                <!-- Apache RAT for license check -->
+                <plugin>
+                    <groupId>org.apache.rat</groupId>
+                    <artifactId>apache-rat-plugin</artifactId>
+                    <configuration>
+                        <excludes>
+                            <exclude>**/*.versionsBackup</exclude>
+                            <exclude>**/*.proto</exclude>
+                            <exclude>**/*.log</exclude>
+                            <exclude>**/*.txt</exclude>
+                            <exclude>**/*.json</exclude>
+                            <exclude>**/*.conf</exclude>
+                            <exclude>**/*.map</exclude>
+                            <exclude>**/*.properties</exclude>
+                            <exclude>dist/**/*</exclude>
+                            
<exclude>**/assembly/static/bin/hugegraph.service</exclude>
+                            <exclude>scripts/dev/reviewers</exclude>
+                            <exclude>scripts/dev/reviewers</exclude>
+                            <exclude>**/*.md</exclude>
+                            <exclude>**/dependency-reduced-pom.xml</exclude>
+                            <exclude>**/logs/*.log</exclude>
+                            <exclude>**/META-INF/**/*</exclude>
+                            <exclude>**/target/*</exclude>
+                            <exclude>style/*</exclude>
+                            <exclude>ChangeLog</exclude>
+                            <exclude>CONFIG.ini</exclude>
+                            <exclude>GROUPS</exclude>
+                            <exclude>OWNERS</exclude>
+                            <!-- GitHub -->
+                            <exclude>.github/**/*</exclude>
+                            <!-- Intellij -->
+                            <exclude>**/*.iml</exclude>
+                            <exclude>**/*.iws</exclude>
+                            <exclude>**/*.ipr</exclude>
+                            <exclude>**/META-INF/MANIFEST.MF</exclude>
+                            <!-- Maven -->
+                            <exclude>.repository/**</exclude>
+                        </excludes>
+                        <consoleOutput>true</consoleOutput>
+                    </configuration>
+                </plugin>
             </plugins>
         </pluginManagement>
 
diff --git a/style/checkstyle.xml b/style/checkstyle.xml
index acc4c40d9..f584e130c 100644
--- a/style/checkstyle.xml
+++ b/style/checkstyle.xml
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+  -->
 <!DOCTYPE module PUBLIC
         "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
         "https://checkstyle.org/dtds/configuration_1_3.dtd";>

Reply via email to