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
本文档详细介绍了在本地编译ThingsBoard时可能遇到的问题,包括license问题、命令过长错误、中文用户名问题、maven与IDEA冲突、编译失败以及最强maven镜像仓库的选择。提供了解决这些问题的具体步骤和建议。
订阅专栏 解锁全文
1705

被折叠的 条评论
为什么被折叠?



