Failed to execute goal org.apache.rat:apache-rat-plugin:0.13:check (default) on project openmeetings-web: Too many files with 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 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
一种方案是在新建的每一个类的第一行添加
/**
http://www.apache.org/licenses/LICENSE-2.0
mvn clean apache-rat:check -Drat.numUnapprovedLicenses=600 package -D maven.javadoc.skip=true assembly:single -Dhadoop.profile=2