mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Add update license header goal to automation project and add community license to automation project source.
This commit is contained in:
@@ -65,7 +65,93 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<!-- License header generation -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>license-maven-plugin</artifactId>
|
||||||
|
<version>1.8</version>
|
||||||
|
<configuration>
|
||||||
|
|
||||||
|
<verbose>${license.verbose}</verbose>
|
||||||
|
<addSvnKeyWords>false</addSvnKeyWords>
|
||||||
|
|
||||||
|
<!-- header configuration -->
|
||||||
|
<organizationName>${license.org.name}</organizationName>
|
||||||
|
<descriptionTemplate>${project.parent.basedir}/license/description.ftl</descriptionTemplate>
|
||||||
|
<canUpdateCopyright>true</canUpdateCopyright>
|
||||||
|
<canUpdateDescription>true</canUpdateDescription>
|
||||||
|
|
||||||
|
<!-- licence configuration -->
|
||||||
|
<addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
|
||||||
|
<licenseName>alfresco_community</licenseName>
|
||||||
|
<licenseResolver>file:/${project.parent.basedir}/license</licenseResolver>
|
||||||
|
|
||||||
|
<!-- dry run options -->
|
||||||
|
<dryRun>${license.update.dryrun}</dryRun>
|
||||||
|
<failOnMissingHeader>true</failOnMissingHeader>
|
||||||
|
<failOnNotUptodateHeader>true</failOnNotUptodateHeader>
|
||||||
|
|
||||||
|
<!-- exculsions -->
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/package-info.java</exclude>
|
||||||
|
<exclude>**/*.properties</exclude>
|
||||||
|
<exclude>**/*.css</exclude>
|
||||||
|
<exclude>**/*.xml</exclude>
|
||||||
|
<exclude>**/*.json</exclude>
|
||||||
|
<exclude>**/*.txt</exclude>
|
||||||
|
</excludes>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>first</id>
|
||||||
|
<goals>
|
||||||
|
<goal>update-file-header</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>process-sources</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.m2e</groupId>
|
||||||
|
<artifactId>lifecycle-mapping</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<lifecycleMappingMetadata>
|
||||||
|
<pluginExecutions>
|
||||||
|
<pluginExecution>
|
||||||
|
<pluginExecutionFilter>
|
||||||
|
<groupId>
|
||||||
|
org.codehaus.mojo
|
||||||
|
</groupId>
|
||||||
|
<artifactId>
|
||||||
|
license-maven-plugin
|
||||||
|
</artifactId>
|
||||||
|
<versionRange>
|
||||||
|
[1.8,)
|
||||||
|
</versionRange>
|
||||||
|
<goals>
|
||||||
|
<goal>
|
||||||
|
update-file-header
|
||||||
|
</goal>
|
||||||
|
</goals>
|
||||||
|
</pluginExecutionFilter>
|
||||||
|
<action>
|
||||||
|
<ignore></ignore>
|
||||||
|
</action>
|
||||||
|
</pluginExecution>
|
||||||
|
</pluginExecutions>
|
||||||
|
</lifecycleMappingMetadata>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
Reference in New Issue
Block a user