maven-license-plugin の設定方法に関する情報をお探しですか? このリンクを確認してください
以下は使用例です。
<build>
<plugins>
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<configuration>
<basedir>${basedir}</basedir>
<header>${basedir}/src/etc/header.txt</header>
<validHeaders>
<validHeader>/otherSupportedHeader.txt</validHeader>
<validHeader>http://www.company.com/yetAnotherSupportedHeader.txt</validHeader>
</validHeaders>
<quiet>false</quiet>
<failIfMissing>true</failIfMissing>
<aggregate>false</aggregate>
<includes>
<include>src/**</include>
<include>**/test/**</include>
</includes>
<excludes>
<exclude>target/**</exclude>
<exclude>.clover/**</exclude>
</excludes>
<useDefaultExcludes>true</useDefaultExcludes>
<mapping>
<jwc>XML_STYLE</jwc>
<application>XML_STYLE</application>
<myFileExtension>JAVADOC_STYLE</myFileExtension>
</mapping>
<useDefaultMapping>true</useDefaultMapping>
<properties>
<year>${project.inceptionYear}</year>
<email>my@email.com</email>
</properties>
<encoding>UTF-8</encoding>
<headerDefinitions>
<headerDefinition>def1.xml</headerDefinition>
<headerDefinition>def2.xml</headerDefinition>
</headerDefinitions>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>