我正在使用 license-maven-plugin 在源树中的每个文件中成功插入许可证头。它生成以下内容:
/*-
* #%L
* my-unqualified-package-name
* %%
* Copyright (C) 2009 - 2017 My Company. <info@mycompany.com>
* %%
* This software is the property of My Company. Etc. Etc.
*
* #L%
*/
我的绒球,
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.14</version>
<configuration>
<inceptionYear>2009</inceptionYear>
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
<organizationName>My Company. <info@mycompany.com></organizationName>
<licenseName>my_license</licenseName>
<licenseResolver>${project.baseUri}/src/license</licenseResolver>
<roots>
<!-- <root>src/main/java</root> -->
<root>src/test</root>
</roots>
</configuration>
<executions>
<execution>
<id>first</id>
<goals>
<goal>update-file-header</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
但我想要以下格式,
/**
* Copyright (C) 2009 - 2018 My Company. <info@mycompany.com>
*
* ====================================================================
* This software is the property of My Company. Etc. Etc.
* ====================================================================
*/