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