1、license问题
如果你增加了新文件,并且不拷贝其他文件中的头部license到你自定义的文件中,编译就会报错license的问题,错误如下:
Failed to execute goal com.mycila:license-maven-plugin:3.0:check (default) on project cache: Some files do not have the expected license header
解决办法就是:
- 在你新增的文件里面的头部增加默认的license,如下所示。
/**
* Copyright © 2016-2023 The Thingsboard Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Lic