当前位置:网站首页>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.
-->边栏推荐
- Halcon combined with C # to detect surface defects -- Halcon routine autobahn
- 消息订阅与发布
- Uniapp skills - dom display and hiding
- Uniapp tips - set background music
- JVM family - overview, program counter day1-1
- Go language web development series 26: Gin framework: demonstrates the execution sequence of code when there are multiple middleware
- [technology development-24]: characteristics of existing IOT communication technology
- Qt学习20 Qt 中的标准对话框(中)
- 信创产业现状、分析与预测
- jvm-类加载
猜你喜欢

jvm-对象生命周期

Common network state detection and analysis tools

从零开始的基于百度大脑EasyData的多人协同数据标注

Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)

Go language unit test 5: go language uses go sqlmock and Gorm to do database query mock

28:第三章:开发通行证服务:11:在配置文件中定义属性,然后在代码中去获取;

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
[email protected]纳米粒子"/>金属有机骨架MIL-88负载阿霉素DOX|叶酸修饰UiO-66-NH2负载阿霉素[email protected]纳米粒子

Multi person collaborative data annotation based on Baidu brain easydata from scratch

“又土又穷”的草根高校,凭什么被称为“东北小清华”?
随机推荐
selenium 浏览器(1)
How to delete an attribute or method of an object
Implementation of Muduo asynchronous logging
解决MySql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES)
Dlopen() implements dynamic loading of third-party libraries
Vite project commissioning
Message subscription and publishing
Page generation QR code
小项目(servelt+jsp+mysql+EL+JSTL)完成一个登录功能的Servlet,具有增删改查的操作。实现登录身份验证,防止非法登录,防止多点登录,记住用户名密码功能。
Selenium browser (1)
Screenshot of the operation steps of upload labs level 4-level 9
JVM object lifecycle
Qt学习18 登录对话框实例分析
Qt学习22 布局管理器(一)
Richview trvstyle liststyle list style (bullet number)
QT learning 19 standard dialog box in QT (top)
Redis:字符串類型數據的操作命令
Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
Current situation, analysis and prediction of information and innovation industry
Qt学习21 Qt 中的标准对话框(下)