mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Use POM hierarchy to remove plugin configuration duplication
This commit is contained in:
51
pom.xml
51
pom.xml
@@ -96,9 +96,12 @@
|
||||
<argLine>-Xmx1024m -XX:MaxPermSize=256m -Duser.language=en -Dcom.sun.management.jmxremote</argLine>
|
||||
|
||||
<!-- license properties -->
|
||||
<license.root>${project.basedir}/license</license.root>
|
||||
<license.org.name>Alfresco Software Limited</license.org.name>
|
||||
<license.name>alfresco_enterprise</license.name>
|
||||
<license.update.dryrun>true</license.update.dryrun>
|
||||
<license.verbose>false</license.verbose>
|
||||
<license.plugin.version>1.8</license.plugin.version>
|
||||
|
||||
</properties>
|
||||
|
||||
@@ -174,6 +177,54 @@
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- License header generation -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<version>${license.plugin.version}</version>
|
||||
<configuration>
|
||||
|
||||
<verbose>${license.verbose}</verbose>
|
||||
<addSvnKeyWords>false</addSvnKeyWords>
|
||||
|
||||
<!-- header configuration -->
|
||||
<organizationName>${license.org.name}</organizationName>
|
||||
<descriptionTemplate>${license.root}/description.ftl</descriptionTemplate>
|
||||
<canUpdateCopyright>true</canUpdateCopyright>
|
||||
<canUpdateDescription>true</canUpdateDescription>
|
||||
|
||||
<!-- licence configuration -->
|
||||
<licenseName>${license.name}</licenseName>
|
||||
<licenseResolver>file:${license.root}</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>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
|
@@ -13,11 +13,17 @@
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
|
||||
<selenium.version>2.45.0</selenium.version>
|
||||
<spring.version>4.0.5.RELEASE</spring.version>
|
||||
<maven.build.sourceVersion>1.8</maven.build.sourceVersion>
|
||||
<suiteXmlFile>testng.xml</suiteXmlFile>
|
||||
<skip.automationtests>true</skip.automationtests>
|
||||
|
||||
<!-- license properties -->
|
||||
<license.root>${project.parent.basedir}/license</license.root>
|
||||
<license.name>alfresco_community</license.name>
|
||||
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
@@ -65,54 +71,6 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</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>
|
||||
<pluginManagement>
|
||||
|
@@ -25,5 +25,7 @@
|
||||
|
||||
<properties>
|
||||
<alfresco.version>5.1.d-EA</alfresco.version>
|
||||
<license.root>${project.parent.basedir}/license</license.root>
|
||||
<license.name>alfresco_community</license.name>
|
||||
</properties>
|
||||
</project>
|
||||
|
@@ -24,7 +24,8 @@
|
||||
<alfresco.mysql.version>5.1.31</alfresco.mysql.version>
|
||||
<alfresco.rm.artifactId>alfresco-rm-community-repo</alfresco.rm.artifactId>
|
||||
<skip.integrationtests>true</skip.integrationtests>
|
||||
<alfresco.solr.home>${project.build.directory}/solr/home</alfresco.solr.home>
|
||||
<alfresco.solr.home>${project.build.directory}/solr/home</alfresco.solr.home>
|
||||
<license.root>${project.parent.parent.basedir}/license</license.root>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
@@ -229,60 +230,28 @@
|
||||
<!-- 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.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.parent.basedir}/license</licenseResolver>
|
||||
|
||||
<!-- dry run options -->
|
||||
<dryRun>${license.update.dryrun}</dryRun>
|
||||
<failOnMissingHeader>true</failOnMissingHeader>
|
||||
<failOnNotUptodateHeader>true</failOnNotUptodateHeader>
|
||||
|
||||
<!-- source roots to check -->
|
||||
<roots>
|
||||
<root>source/java</root>
|
||||
<root>unit-test/java</root>
|
||||
<root>source/compatibility</root>
|
||||
<root>config</root>
|
||||
<root>test/java</root>
|
||||
<root>test/resources</root>
|
||||
</roots>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- source roots to check -->
|
||||
<roots>
|
||||
<root>source/java</root>
|
||||
<root>unit-test/java</root>
|
||||
<root>source/compatibility</root>
|
||||
<root>config</root>
|
||||
<root>test/java</root>
|
||||
<root>test/resources</root>
|
||||
</roots>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>first</id>
|
||||
<goals>
|
||||
<goal>update-file-header</goal>
|
||||
</goals>
|
||||
<phase>process-sources</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
|
Reference in New Issue
Block a user