오픈소스에 add class 후 빌드 에러 발생 (Too many files with unapproved license)

ITWeb/개발일반 2015. 2. 17. 12:01

[에러]

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project ambari-server: Too many files with unapproved license: 1 See RAT report in: /Users/hwjeong/git/ambari/ambari-server/target/rat.txt -> [Help 1]


이 에러는 뭐 오픈소스 사용하면서 class header 에 ASF 라이센스 정보를 작성 하지 않아서 발생하는 것입니다.

그러니 넣어 주시면 에러가 없어 집니다.


[헤더 라이선스 내용]

/**
* 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.
*/


: