Flume - Too many unapproved licenses: 1

Flink-cdc-connectors 源码编译时报“Too many files with unapproved license“错误 Flink-cdc-connectors 源码编译时报"Too many files with unapproved license"错误,解决措施有两个: 1. 编译时忽略文件头license的检查 2. 在文件头补充license 阅读详情

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.7:check (verify.rat) on project flume-ng-elasticsearch-sink: Too many unapproved licenses: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :flume-ng-elasticsearch-sink

重点是上述红色标记的地方,因为最近项目要从nginx获取数据实时导入到elasticsearch中,flume自带的elasticsearch-sink不能满足我们要求,所以要自定义。在里面flume-ng-elasticsearch-sink中新增了一些类和测试配置文件,本想重新打包发布的。可以一maven打包就报上述异常。

 

解决办法:

配置文件第一行加如下内容:

#
# 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.
#


java类第一行加如下内容:

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

 

请看根目录的pom配置:

        <groupId>org.apache.rat</groupId>
          <artifactId>apache-rat-plugin</artifactId>
          <version>0.7</version>
          <executions>
            <execution>
              <id>verify.rat</id>
              <phase>verify</phase>
              <goals>
                <goal>check</goal>
              </goals>
              <configuration>
                <excludes>
                  <exclude>**/.idea/</exclude>
                  <exclude>**/*.iml</exclude>
                  <exclude>**/nb-configuration.xml</exclude>
                  <exclude>.git/</exclude>
                  <exclude>patchprocess/</exclude>
                  <exclude>.gitignore</exclude>
                  <!-- ASF jenkins box puts the Maven repo in our root directory. -->
                  <exclude>.repository/</exclude>
                  <exclude>**/*.diff</exclude>
                  <exclude>**/*.patch</exclude>
                  <exclude>**/*.avsc</exclude>
                  <exclude>**/*.avro</exclude>
                  <exclude>**/docs/**</exclude>
                  <exclude>**/test/resources/**</exclude>
                  <exclude>**/.settings/*</exclude>
                  <exclude>**/.classpath</exclude>
                  <exclude>**/.project</exclude>
                  <exclude>**/target/**</exclude>
                  <exclude>**/derby.log</exclude>
                  <exclude>**/metastore_db/</exclude>
                </excludes>
              </configuration>
            </execution>
          </executions>

 

 

 

注:上述要加的内容,大家最好在源码里面找,java类的,可以在源码中任意一个java类中找,配置文件的,可以在源码中任意一个配置文件里面拷贝出来。

 

 

Flink编译时报错:存在太多未经批准许可的文件 确保项目中的所有文件都附带了适当的许可证信息。总结起来,当Flink编译过程中报错"Too many files with unapproved license"时,我们应该审查并更新项目中的许可证信息,确保所有文件都附带适当的许可证声明。这个错误通常是由于项目中的某些文件缺乏适当的许可证信息或使用了不允许的许可证导致的。移除未经批准的许可证文件:如果发现项目中存在未经批准的许可证文件,我们需要将其移除或替换为适当的许可证文件。确保所有使用的许可证都是合法、允许的,并且与Flink项目的许可证兼容。 阅读详情

相关推荐

【无机纳米材料科研制图——OriginLab 0205】Origin对BET吸附/脱附曲线及孔径分布制图...

此篇,我们来分享如何对BET数据进行处理和制图。 一、等温吸脱附曲线绘制 1)找到等温吸脱附文件。 一半来说,对一个样品测一次BET,会产生很多数据,具体因仪器而异。我这里的数据主要有两个文件夹,一个脱附,一个吸附,吸附文件夹中多了一个等温吸脱附的文件夹。而这...

XD_Yangf的博客 803

编译Flume-NG遇到Too many unapproved licenses: 1

编译Flume-NG遇到Too many unapproved licenses: 1

zh_yi的专栏 3381

告别密码本!用Windows NPS给华为/华三交换机做Radius认证,SSH登录更安全

本文详细介绍了如何利用Windows NPS实现华为/华三交换机的Radius认证,提升SSH登录安全性。通过集中化管理、精细化控制和完整审计追踪,企业可告别传统密码本,大幅提升网络设备管理效率。文章包含NPS服务部署指南、交换机配置详解及调试技巧,助力企业构建安全高效的统一认证体系。

weixin_42549723的博客 419

报错 Too many files with unapproved license

Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project flink-parent: Too many files with unapproved license: 4 See RAT report in: D:\ffffff\flink-release-1.10.0\flink-...

ppwwp的专栏 1万+

HALCON实战:用两个工业相机实现无缝大视野拼接(附完整代码与避坑指南)

本文详细介绍了使用HALCON软件实现双工业相机图像无缝拼接的完整解决方案,涵盖硬件配置、相机标定、坐标系转换和图像拼接等关键步骤。通过高精度标定和矩阵变换技术,可构建大视野检测系统,适用于液晶面板、PCB等工业检测场景,显著提升检测效率和精度。

weixin_29050513的博客 191

PyBioMed学习

PyProtein。

weixin_63016274的博客 1401

Too many files with unapproved license

Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project nacos-console: Too many files with unapproved license: 1 See RAT report in: D:\program\IDEA_workSpace\alibaba\Nacos\console\target\rat.txt -> [Help 1]

xzh_blog 4941

06 - 深度学习处理器原理

深度学习处理器的重要性在于它们可以加速深度学习任务的执行,从而推动了人工智能的发展。传统的通用处理器虽然可以执行深度学习任务,但它们不够高效,需要消耗大量的能量和时间。深度学习处理器通过硬件加速和特定设计来优化深度学习任务的执行,从而可以提高执行效率、降低能耗和加速训练和推断过程。 深度学习处理器的发展也推动了深度学习算法的创新,因为算法的发展需要硬件的支持和驱动。同时,深度学习处理器的出现也促进了更广泛的应用场景,包括自动驾驶、人脸识别、语音识别、图像识别等领域。因此,深度学习处理器的重要性不仅在于加速

m0_51339444的博客 752

Maven 报错:Too many files with unapproved license

加上 -Drat.skip=true 编译即可。

April_Lie的博客 1838

IDC 数据中心工程师面试题汇总

(适用于:IDC运维、机房值班、机房工程师、机柜运维、IDC基础设施、IDC网络运维岗)

老韩的Linux云计算架构师进阶之路 1071

QT应用编程: Win10系统下QT5.12搭建Android开发环境(配件齐全)

在win10系统下,搭建QT5.12.6 的Android开发环境。

7688

MAVEN - 如果没有License头会报错(apache-rat-plugin):Too many files with unapproved license: 6 See RAT report

由于添加了apache-rat-plugin插件,所以项目中新添加的文件如果没有加上License头,会在检查时报错。

记录并分享 1879

0基础学习diffusion_model扩散模型【易理解的公式推导】Denoising Diffusion Probabilistic Models

去噪扩散概率模型。本文是笔者在学习扩散模型时的一些笔记与心得,在公式推导过程中能够保证自己是一步一步去推导并且理解了的。概述是我认为比较重要的部分能够帮助理解公式的推导,具体的公式推导在每一小节中进行。1、扩散过程:如上图所示,扩散过程为从右到左X0→XTX0​→XT​的过程,表示对图片逐渐加噪,且Xt1X_{t+1}Xt1​是在XtX_{t}Xt​加躁得到的,其只受XtX_{t}Xt​的影响,因此扩散过程是一个马尔科夫过程。X0X_0。

zik的博客 2397

Too many files with unapproved license异常、使用-Drat.skip=true跳过 或者 对没有授权的文件开头添加授权

问题: 原因:   使用apache-rat-plugin,代码中存在许多文件没有获得许可 解决:  在maven命令后添加参数 或者   读取报错中的文件,找到 在没有授权的文件开头添加

不是一枚开发 7万+

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

解决org.apache.rat:apache-rat-plugin:0.8:check (default) on project hbase: Too many unapproved license...

maven打包的时候报错:报错信息:[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default) on project hbase: Too many unapproved licenses: 513 -> [Help 1][ERROR][ERROR] To see the fu...

weixin_30414305的博客 686

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

Failed to execute goal ?[32morg.apache.maven.plugins:maven-surefire-plugin

[?[1;31mERROR?[m] Failed to execute goal ?[32morg.apache.maven.plugins:maven-surefire-plugin:2.22.1:test?[m ?[1m(default-test)?[m on project ?[36mnep-lib?[m: ?[1;31mThere are test failures.?[m [?[1;3...

u014594604的博客 1013

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

Too many files with unapproved license: 2 See RAT report

【代码】Too many files with unapproved license: 2 See RAT report。

wokoone的博客 628

Ambari 2.5.2源码编译报错:Too many files with unapproved license

命令:mvn -B install package rpm:rpm -DskipTests -Dpython.ver="python >= 2.6" -Drat.skip=true -Preplaceurl (加上-Drat.skip=true进行编译即可)

周源的专栏 7634

解决org.apache.rat:apache-rat-plugin:0.8:check (default) on project hbase: Too many unapproved license

maven打包的时候报错: 报错信息: [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default) on project hbase: Too many unapproved licenses: 513 -> [Help 1] [ERROR] [ERROR] To see the f

plgy_Y的博客 9868

mvn : Too many files with unapproved license

-Drat.skip=true

We get old too soon and wise too late 3032

hbase build Too many unapproved licenses

  [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.8:check (default) on project hbase: Too many unapproved licenses: 2856 -&gt; [Help 1]   在target/rat.txt下面寻找哪些文件前面打了问号,去掉这些文件! ...

bupt041137的专栏 329

flume build过程中出现Too many unapproved licenses错误

在target/rat.txt下面寻找哪些文件前面打了问号,去掉这些文件!

渴死的火烈鸟 571

Maven Error: Too many files with unapproved license

错误信息 在使用如下maven命令编译Flink源码时, mvn clean install -DskipTests 出现错误: [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project flink-parent: Too many files with...

Blossom 5788

Ambari部署,编译,打包过程中遇到的问题

1.错误: [ERROR] Failed to execute goal com.github.goldin:copy-maven-plugin:0.2.5:copy (create-archive) on project ambari-agent: Processing  [Target path(s) [/home/bdms/workspacebaribari-agent/targetb],

guoyachuan01的专栏 6172
上一篇: Flume - 安装及启动命令详解
下一篇: java.lang.IllegalMonitorStateException异常
qianshanding0708
博客等级 码龄11年 425粉丝 96原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值