当前位置:网站首页>Too many files with unapproved license
Too many files with unapproved license
2022-07-03 13:33:00 【抓手】
报错信息:
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]
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project ranger: Too many files with unapproved license: 1 See RAT report in: /home/zhangjc/ysten/git/apache-ranger-1.2.0/target/rat.txt -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project ranger: Too many files with unapproved license: 1 See RAT report in: /home/zhangjc/ysten/git/apache-ranger-1.2.0/target/rat.txt
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
原因:新加的文件没有加上license头
解决:
方案1.增加 -Drat.skip=true 参数 ,跳过license检查。
mvn clean install -DskipTests -Drat.skip=true
方案2.添加license头
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 1999-2018 Alibaba Group Holding Ltd.
~
~ 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 License for the specific language governing permissions and
~ limitations under the License.
-->
边栏推荐
- Field problems in MySQL
- Record 405 questions about bank callback post request
- Formation of mil-100 (FE) coated small molecule aspirin [email protected] (FE) | glycyrrhetinic acid modified metal organ
- [ACNOI2022]猜数
- 3D vision - 2 Introduction to pose estimation - openpose includes installation, compilation and use (single frame, real-time video)
- 消息订阅与发布
- The small project (servlet+jsp+mysql+el+jstl) completes a servlet with login function, with the operation of adding, deleting, modifying and querying. Realize login authentication, prevent illegal log
- Redis:Redis的数据结构、key的操作命令
- Multi person collaborative data annotation based on Baidu brain easydata from scratch
- Implementation of Muduo accept connection, disconnection and sending data
猜你喜欢
Why are grass-roots colleges and universities with "soil and poverty" called "Northeast small Tsinghua"?
Qt学习20 Qt 中的标准对话框(中)
Article content typesetting and code highlighting
Halcon combined with C # to detect surface defects -- Halcon routine autobahn
QT learning 20 standard dialog box in QT (middle)
Another industry has been broken by Chinese chips. No wonder the leading analog chip companies in the United States have cut prices and sold off
Global event bus
[email protected](Fe)|甘草次酸修饰金属有机框架材料UiO-66-NH2(简称UiO-66-NH2-GA)"/>
MIL-100( Fe) 包裹小分子阿司匹林形成[email protected](Fe)|甘草次酸修饰金属有机框架材料UiO-66-NH2(简称UiO-66-NH2-GA)
小项目(servelt+jsp+mysql+EL+JSTL)完成一个登录功能的Servlet,具有增删改查的操作。实现登录身份验证,防止非法登录,防止多点登录,记住用户名密码功能。
[email protected])"/>
金属有机骨架(MOFs)抗肿瘤药载体|PCN-223装载甲硝唑|UiO-66包载盐酸环丙沙星([email protected])
随机推荐
Go language web development series 26: Gin framework: demonstrates the execution sequence of code when there are multiple middleware
How to delete an attribute or method of an object
Another industry has been broken by Chinese chips. No wonder the leading analog chip companies in the United States have cut prices and sold off
从零开始的基于百度大脑EasyData的多人协同数据标注
Using registered classes to realize specific type matching function template
JVM系列——概述,程序计数器day1-1
JVM class loading
Programmable logic device software testing
Mysql:insert date:sql error [1292] [22001]: data truncation: incorrect date value:
SQL Injection (AJAX/JSON/jQuery)
Article content typesetting and code highlighting
Configure stylelint
Rasp implementation of PHP
Logback log sorting
Use and design of Muduo buffer class
Golang - command line tool Cobra
[understanding by chance-37]: the structure of human sensory system determines that human beings are self-centered
金属有机骨架MOFs装载非甾体类抗炎药物|ZIF-8包裹普鲁士蓝负载槲皮素(制备方法)
Multi person collaborative data annotation based on Baidu brain easydata from scratch
JS Part 2