[ERROR] Failed to execute goal com.mycila:license-maven-plugin:3.0:check (default) on project xxx: Some files do not have the expected license header -> [Help 1]
原因:
因为maven会对license进行检车check,而配置文件缺少头部license声明,所以报错,无法执行下去。
mvn clean install -DskipTests license:format
增加 license:format 参数
如果还是报错,则需要屏蔽根目录下的pom.xml文件代码段:
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
</plugin>