当我使用 maven 许可证插件向文件添加标头时,尝试忽略某些模块时遇到问题。我尝试做的方式是将模块路径放在排除标记中。这是 pom.xml 中的插件:
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.10.b1</version>
<executions>
<execution>
<goals>
<goal>format</goal>
</goals>
<phase>validate</phase>
<configuration>
<header>header.txt</header>
<aggregate>true</aggregate>
<excludes>
<exclude>**/a/**</exclude>
<exclude>**/b/**</exclude>
<exclude>**/c/**</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
这就是我试图忽略这个父 pom.xml 中的项目的方式。我已经尝试过 ${project.basedir}/a/ 和 ${basedir}/a/
先感谢您。