diff --git a/samples/bmi/pom.xml b/samples/bmi/pom.xml
index 6684fa6558..af0a5189a5 100644
--- a/samples/bmi/pom.xml
+++ b/samples/bmi/pom.xml
@@ -64,5 +64,26 @@
hibernate-validator
+
+
+
+ org.apache.rat
+ apache-rat-plugin
+
+
+ .travis.yml
+ **/*.md
+ **/target/*
+
+ **/resources/ssl/**
+
+ **/*.proto
+
+ **/*.idl
+
+
+
+
+
diff --git a/samples/jaxrs-sample/jaxrs-consumer/src/main/resources/microservices/hello/hello.yaml b/samples/jaxrs-sample/jaxrs-consumer/src/main/resources/microservices/hello/hello.yaml
index 5162661aca..b13a9df3ad 100644
--- a/samples/jaxrs-sample/jaxrs-consumer/src/main/resources/microservices/hello/hello.yaml
+++ b/samples/jaxrs-sample/jaxrs-consumer/src/main/resources/microservices/hello/hello.yaml
@@ -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.
+## ---------------------------------------------------------------------------
+
swagger: '2.0'
info:
title: hello
@@ -25,4 +42,4 @@ paths:
default:
description: 默认返回
schema:
- type: string
\ No newline at end of file
+ type: string
diff --git a/samples/jaxrs-sample/jaxrs-provider/src/main/resources/microservices/hello/hello.yaml b/samples/jaxrs-sample/jaxrs-provider/src/main/resources/microservices/hello/hello.yaml
index 5162661aca..b13a9df3ad 100644
--- a/samples/jaxrs-sample/jaxrs-provider/src/main/resources/microservices/hello/hello.yaml
+++ b/samples/jaxrs-sample/jaxrs-provider/src/main/resources/microservices/hello/hello.yaml
@@ -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.
+## ---------------------------------------------------------------------------
+
swagger: '2.0'
info:
title: hello
@@ -25,4 +42,4 @@ paths:
default:
description: 默认返回
schema:
- type: string
\ No newline at end of file
+ type: string
diff --git a/samples/pojo-sample/pojo-consumer/src/main/resources/microservices/hello/hello.yaml b/samples/pojo-sample/pojo-consumer/src/main/resources/microservices/hello/hello.yaml
index 932e1ed385..d192307b13 100644
--- a/samples/pojo-sample/pojo-consumer/src/main/resources/microservices/hello/hello.yaml
+++ b/samples/pojo-sample/pojo-consumer/src/main/resources/microservices/hello/hello.yaml
@@ -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.
+## ---------------------------------------------------------------------------
+
swagger: '2.0'
info:
title: hello
@@ -52,4 +69,4 @@ definitions:
type: "string"
description: "person name"
xml:
- name: "Person"
\ No newline at end of file
+ name: "Person"
diff --git a/samples/pojo-sample/pojo-provider/src/main/resources/microservices/hello/hello.yaml b/samples/pojo-sample/pojo-provider/src/main/resources/microservices/hello/hello.yaml
index 932e1ed385..d192307b13 100644
--- a/samples/pojo-sample/pojo-provider/src/main/resources/microservices/hello/hello.yaml
+++ b/samples/pojo-sample/pojo-provider/src/main/resources/microservices/hello/hello.yaml
@@ -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.
+## ---------------------------------------------------------------------------
+
swagger: '2.0'
info:
title: hello
@@ -52,4 +69,4 @@ definitions:
type: "string"
description: "person name"
xml:
- name: "Person"
\ No newline at end of file
+ name: "Person"
diff --git a/samples/pom.xml b/samples/pom.xml
index d92ed8268d..d4bd96c8f2 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -74,6 +74,23 @@
true
+
+ org.apache.rat
+ apache-rat-plugin
+
+
+ .travis.yml
+ **/*.md
+ **/target/*
+
+ **/resources/ssl/**
+
+ **/*.proto
+
+ **/*.idl
+
+
+
diff --git a/samples/springmvc-sample/springmvc-consumer/src/main/resources/microservices/hello/hello.yaml b/samples/springmvc-sample/springmvc-consumer/src/main/resources/microservices/hello/hello.yaml
index be8ea88dda..240f02ec16 100644
--- a/samples/springmvc-sample/springmvc-consumer/src/main/resources/microservices/hello/hello.yaml
+++ b/samples/springmvc-sample/springmvc-consumer/src/main/resources/microservices/hello/hello.yaml
@@ -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.
+## ---------------------------------------------------------------------------
+
swagger: '2.0'
info:
title: hello
@@ -52,4 +69,4 @@ definitions:
type: "string"
description: "person name"
xml:
- name: "Person"
\ No newline at end of file
+ name: "Person"
diff --git a/samples/springmvc-sample/springmvc-provider/src/main/resources/microservices/hello/hello.yaml b/samples/springmvc-sample/springmvc-provider/src/main/resources/microservices/hello/hello.yaml
index be8ea88dda..240f02ec16 100644
--- a/samples/springmvc-sample/springmvc-provider/src/main/resources/microservices/hello/hello.yaml
+++ b/samples/springmvc-sample/springmvc-provider/src/main/resources/microservices/hello/hello.yaml
@@ -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.
+## ---------------------------------------------------------------------------
+
swagger: '2.0'
info:
title: hello
@@ -52,4 +69,4 @@ definitions:
type: "string"
description: "person name"
xml:
- name: "Person"
\ No newline at end of file
+ name: "Person"