mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
ACS-1560 Update AGS amp build configuration for compatibility with ACS and its release plugin [skip ci] (#447)
This commit is contained in:
485
amps/ags/pom.xml
485
amps/ags/pom.xml
@@ -16,256 +16,18 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.buildhelper.version>1.9.1</maven.buildhelper.version>
|
|
||||||
<maven.compiler.version>3.8.0</maven.compiler.version>
|
|
||||||
<maven.enforcer.plugin>3.0.0-M2</maven.enforcer.plugin>
|
|
||||||
<maven.resources.version>3.1.0</maven.resources.version>
|
|
||||||
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
|
|
||||||
<license.update.dryrun>true</license.update.dryrun>
|
<license.update.dryrun>true</license.update.dryrun>
|
||||||
<license.verbose>false</license.verbose>
|
<license.verbose>false</license.verbose>
|
||||||
|
|
||||||
<app.amp.client.war.folder>${project.build.directory}/${project.build.finalName}-war</app.amp.client.war.folder>
|
|
||||||
<app.amp.folder>src/main/amp</app.amp.folder>
|
|
||||||
<app.amp.output.folder>../${project.build.finalName}</app.amp.output.folder>
|
|
||||||
<app.filtering.enabled>true</app.filtering.enabled>
|
|
||||||
<app.properties.include>**</app.properties.include>
|
|
||||||
<app.properties.folder>src/main/properties/local</app.properties.folder>
|
|
||||||
<app.properties.test.include>**</app.properties.test.include>
|
|
||||||
<app.properties.test.folder>src/test/properties/local</app.properties.test.folder>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<!-- XML jars removed in Java 11 but are provided by alfresco-content-services -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>jakarta.jws</groupId>
|
|
||||||
<artifactId>jakarta.jws-api</artifactId>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>enforce-java</id>
|
|
||||||
<goals>
|
|
||||||
<goal>enforce</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<rules>
|
|
||||||
<requireJavaVersion>
|
|
||||||
<version>[${java.version},)</version>
|
|
||||||
</requireJavaVersion>
|
|
||||||
</rules>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>regex-properties</id>
|
|
||||||
<goals>
|
|
||||||
<goal>regex-properties</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<regexPropertySettings>
|
|
||||||
<regexPropertySetting>
|
|
||||||
<name>ags.module.repo.version.min</name>
|
|
||||||
<value>${amp.min.version}</value>
|
|
||||||
<regex>(\d+)\.(\d+).*</regex>
|
|
||||||
<replacement>$1.$2</replacement>
|
|
||||||
<failIfNoMatch>false</failIfNoMatch>
|
|
||||||
</regexPropertySetting>
|
|
||||||
</regexPropertySettings>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>add-test-source</id>
|
|
||||||
<goals>
|
|
||||||
<goal>add-test-source</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<sources>
|
|
||||||
<source>src/unit-test/java</source>
|
|
||||||
</sources>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<includes>
|
|
||||||
<include>**/*UnitTest.java</include>
|
|
||||||
</includes>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
|
||||||
<version>3.0.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>attach-sources</id>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<doclint>none</doclint>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>attach-javadocs</id>
|
|
||||||
<configuration>
|
|
||||||
<doclint>none</doclint>
|
|
||||||
</configuration>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-clean-plugin</artifactId>
|
|
||||||
<version>3.1.0</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>default-clean</id>
|
|
||||||
<phase>clean</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>clean</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-install-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>default-install</id>
|
|
||||||
<phase>install</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>install</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
|
||||||
<version>2.7</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>default-deploy</id>
|
|
||||||
<phase>deploy</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>deploy</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-site-plugin</artifactId>
|
|
||||||
<version>3.7.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>default-site</id>
|
|
||||||
<phase>site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>site</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>default-deploy</id>
|
|
||||||
<phase>site-deploy</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>deploy</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
<extensions>
|
|
||||||
<extension>
|
|
||||||
<groupId>org.apache.maven.archetype</groupId>
|
|
||||||
<artifactId>archetype-packaging</artifactId>
|
|
||||||
<version>2.2</version>
|
|
||||||
</extension>
|
|
||||||
<extension>
|
|
||||||
<groupId>org.apache.maven.wagon</groupId>
|
|
||||||
<artifactId>wagon-webdav-jackrabbit</artifactId>
|
|
||||||
<version>2.2</version>
|
|
||||||
</extension>
|
|
||||||
</extensions>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>src/main/resources</directory>
|
|
||||||
<filtering>${app.filtering.enabled}</filtering>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<directory>${app.amp.folder}</directory>
|
|
||||||
<targetPath>${app.amp.output.folder}</targetPath>
|
|
||||||
<filtering>${app.filtering.enabled}</filtering>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<testResources>
|
|
||||||
<testResource>
|
|
||||||
<directory>src/test/resources</directory>
|
|
||||||
<filtering>${app.filtering.enabled}</filtering>
|
|
||||||
</testResource>
|
|
||||||
</testResources>
|
|
||||||
|
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>${maven.compiler.version}</version>
|
|
||||||
<configuration>
|
|
||||||
<source>${maven.compiler.source}</source>
|
|
||||||
<target>${maven.compiler.target}</target>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>default-testCompile</id>
|
|
||||||
<phase>process-test-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>testCompile</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<source>${java.version}</source>
|
|
||||||
<target>${java.version}</target>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
|
||||||
<version>${maven.enforcer.plugin}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>properties-maven-plugin</artifactId>
|
|
||||||
<version>1.0-alpha-2</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-failsafe-plugin</artifactId>
|
|
||||||
<version>3.0.0-M5</version>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<argLine>
|
<argLine>
|
||||||
--illegal-access=permit
|
--illegal-access=permit
|
||||||
@@ -273,35 +35,11 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-failsafe-plugin</artifactId>
|
||||||
<version>1.8</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
|
||||||
<version>${maven.buildhelper.version}</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>sql-maven-plugin</artifactId>
|
|
||||||
<version>1.5</version>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<!-- Maven Release Plugin (Use a recent version for better Git Support) -->
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
|
||||||
<version>2.5.3</version>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<tagNameFormat>V@{project.version}</tagNameFormat>
|
<argLine>
|
||||||
</configuration>
|
--illegal-access=permit
|
||||||
</plugin>
|
</argLine>
|
||||||
|
|
||||||
<!-- Disable doclint until RM-3150 is fixed -->
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<doclint>none</doclint>
|
|
||||||
<source>${java.version}</source>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
@@ -310,31 +48,30 @@
|
|||||||
<artifactId>license-maven-plugin</artifactId>
|
<artifactId>license-maven-plugin</artifactId>
|
||||||
<version>1.16</version>
|
<version>1.16</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<verbose>${license.verbose}</verbose>
|
||||||
<verbose>${license.verbose}</verbose>
|
|
||||||
<addSvnKeyWords>false</addSvnKeyWords>
|
<addSvnKeyWords>false</addSvnKeyWords>
|
||||||
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
|
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
|
||||||
|
|
||||||
<!-- header configuration -->
|
<!-- header configuration -->
|
||||||
<organizationName>Alfresco Software Limited</organizationName>
|
<organizationName>Alfresco Software Limited</organizationName>
|
||||||
<descriptionTemplate>${project.parent.parent.basedir}/license/description.ftl</descriptionTemplate>
|
<descriptionTemplate>${project.parent.parent.basedir}/license/description.ftl</descriptionTemplate>
|
||||||
<canUpdateCopyright>true</canUpdateCopyright>
|
<canUpdateCopyright>true</canUpdateCopyright>
|
||||||
<canUpdateDescription>true</canUpdateDescription>
|
<canUpdateDescription>true</canUpdateDescription>
|
||||||
|
|
||||||
<!-- licence configuration -->
|
<!-- licence configuration -->
|
||||||
<licenseResolver>file:${project.parent.parent.basedir}/license</licenseResolver>
|
<licenseResolver>file:${project.parent.parent.basedir}/license</licenseResolver>
|
||||||
|
|
||||||
<!-- dry run options -->
|
<!-- dry run options -->
|
||||||
<dryRun>${license.update.dryrun}</dryRun>
|
<dryRun>${license.update.dryrun}</dryRun>
|
||||||
<failOnMissingHeader>true</failOnMissingHeader>
|
<failOnMissingHeader>true</failOnMissingHeader>
|
||||||
<failOnNotUptodateHeader>true</failOnNotUptodateHeader>
|
<failOnNotUptodateHeader>true</failOnNotUptodateHeader>
|
||||||
|
|
||||||
<!-- default root -->
|
<!-- default root -->
|
||||||
<roots>
|
<roots>
|
||||||
<root>src</root>
|
<root>src</root>
|
||||||
</roots>
|
</roots>
|
||||||
|
|
||||||
<!-- exculsions -->
|
<!-- exculsions -->
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/package-info.java</exclude>
|
<exclude>**/package-info.java</exclude>
|
||||||
<exclude>**/*.properties</exclude>
|
<exclude>**/*.properties</exclude>
|
||||||
@@ -356,16 +93,9 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<version>${maven.resources.version}</version>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.maven.shared</groupId>
|
|
||||||
<artifactId>maven-filtering</artifactId>
|
|
||||||
<version>${dependency.maven-filtering.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
<nonFilteredFileExtensions>
|
<nonFilteredFileExtensions>
|
||||||
@@ -398,82 +128,6 @@
|
|||||||
</nonFilteredFileExtensions>
|
</nonFilteredFileExtensions>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
|
||||||
<dependencies>
|
|
||||||
<!-- Needed when creating the community and enterprise rest api wars -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.commons</groupId>
|
|
||||||
<artifactId>commons-compress</artifactId>
|
|
||||||
<version>${dependency.apache-compress.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
|
||||||
<artifactId>alfresco-maven-plugin</artifactId>
|
|
||||||
<version>${alfresco.maven-plugin.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<configuration>
|
|
||||||
<archiveClasses>false</archiveClasses>
|
|
||||||
<archive>
|
|
||||||
<manifest>
|
|
||||||
<addClasspath>true</addClasspath>
|
|
||||||
</manifest>
|
|
||||||
</archive>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-clean-plugin</artifactId>
|
|
||||||
<version>3.1.0</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<version>3.1.1</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-archetype-plugin</artifactId>
|
|
||||||
<version>2.2</version>
|
|
||||||
<configuration>
|
|
||||||
<skip>${skipTests}</skip>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
|
||||||
<artifactId>replacer</artifactId>
|
|
||||||
<version>1.5.3</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.tomcat.maven</groupId>
|
|
||||||
<artifactId>tomcat7-maven-plugin</artifactId>
|
|
||||||
<version>2.2</version>
|
|
||||||
<configuration>
|
|
||||||
<useSeparateTomcatClassLoader>true</useSeparateTomcatClassLoader>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>net.alchim31.maven</groupId>
|
|
||||||
<artifactId>yuicompressor-maven-plugin</artifactId>
|
|
||||||
<version>1.5.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>compress-js</id>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>compress</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<excludes>
|
|
||||||
<exclude>**/webscripts/**</exclude>
|
|
||||||
<exclude>**/site-webscripts/**</exclude>
|
|
||||||
<exclude>**/*.lib.js</exclude>
|
|
||||||
<exclude>**/*.css</exclude>
|
|
||||||
</excludes>
|
|
||||||
<warSourceDirectory>src/main/resources/META-INF</warSourceDirectory>
|
|
||||||
<jswarn>false</jswarn>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
@@ -486,117 +140,4 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</reporting>
|
</reporting>
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<!-- Generate the Javadoc for Public API only (filtered on AlfrescoPublicApi annotation) -->
|
|
||||||
<profile>
|
|
||||||
<id>publicapi</id>
|
|
||||||
<properties>
|
|
||||||
<docflex.version>1.6.1</docflex.version>
|
|
||||||
</properties>
|
|
||||||
<!-- Downloads the docflex license -->
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.docflex</groupId>
|
|
||||||
<artifactId>docflex-alfresco-license</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<type>license</type>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<!-- Extracts Docflex locally -->
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<version>3.1.1</version>
|
|
||||||
<executions>
|
|
||||||
<!-- Unzips the docflex/javadoc doclet -->
|
|
||||||
<execution>
|
|
||||||
<id>default-cli</id>
|
|
||||||
<phase>generate-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>unpack</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<artifactItems>
|
|
||||||
<artifactItem>
|
|
||||||
<groupId>com.docflex</groupId>
|
|
||||||
<artifactId>docflex-javadoc</artifactId>
|
|
||||||
<version>${docflex.version}</version>
|
|
||||||
<type>zip</type>
|
|
||||||
</artifactItem>
|
|
||||||
</artifactItems>
|
|
||||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<doclet>com.docflex.javadoc.Doclet</doclet>
|
|
||||||
<docletPath>${project.build.directory}/docflex-javadoc-${docflex.version}/lib/docflex-javadoc.jar</docletPath>
|
|
||||||
<doclint>none</doclint>
|
|
||||||
<additionalOptions>
|
|
||||||
|
|
||||||
-license ${settings.localRepository}/com/docflex/docflex-alfresco-license/1.0/docflex-alfresco-license-1.0.license
|
|
||||||
-template ${project.build.directory}/docflex-javadoc-${docflex.version}/templates/JavadocPro/FramedDoc.tpl
|
|
||||||
-nodialog
|
|
||||||
-launchviewer=false
|
|
||||||
-p:filter.byAnns.include.classes=org.alfresco.api.AlfrescoPublicApi
|
|
||||||
-p:docTitle "${project.name} ${project.version} Public API"
|
|
||||||
-p:windowTitle "${project.name} ${project.version} Public API"
|
|
||||||
|
|
||||||
</additionalOptions>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The following profile adds the /properties directories as resource directories in the project.
|
|
||||||
This means we can filter the property files in these directories.
|
|
||||||
The presence of this /properties directory also activates these profiles.
|
|
||||||
-->
|
|
||||||
<profile>
|
|
||||||
<id>enable-test-properties-filtering</id>
|
|
||||||
<activation>
|
|
||||||
<file>
|
|
||||||
<!-- No properties allowed here. Only hardcoded values are properly interpreted -->
|
|
||||||
<exists>src/test/properties</exists>
|
|
||||||
</file>
|
|
||||||
</activation>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
|
||||||
<version>${maven.buildhelper.version}</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>add-env-test-properties</id>
|
|
||||||
<phase>generate-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>add-test-resource</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>${app.properties.test.folder}</directory>
|
|
||||||
<includes>
|
|
||||||
<include>${app.properties.test.include}</include>
|
|
||||||
</includes>
|
|
||||||
<filtering>${app.filtering.enabled}</filtering>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
</project>
|
</project>
|
||||||
|
@@ -7,4 +7,4 @@ module.aliases=org_alfresco_module_dod5015
|
|||||||
module.title=AGS Repo
|
module.title=AGS Repo
|
||||||
module.description=Alfresco Governance Services Repository Extension
|
module.description=Alfresco Governance Services Repository Extension
|
||||||
module.version=${project.version}
|
module.version=${project.version}
|
||||||
module.repo.version.min=${ags.module.repo.version.min}
|
module.repo.version.min=${amp.min.version}
|
||||||
|
@@ -12,6 +12,8 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
<app.amp.client.war.folder>${project.build.directory}/${project.build.finalName}-war</app.amp.client.war.folder>
|
||||||
|
|
||||||
<image.name>alfresco/alfresco-governance-repository-community</image.name>
|
<image.name>alfresco/alfresco-governance-repository-community</image.name>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -144,10 +146,11 @@
|
|||||||
<build>
|
<build>
|
||||||
<sourceDirectory>source/java</sourceDirectory>
|
<sourceDirectory>source/java</sourceDirectory>
|
||||||
<testSourceDirectory>test/java</testSourceDirectory>
|
<testSourceDirectory>test/java</testSourceDirectory>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>config</directory>
|
<directory>config</directory>
|
||||||
<filtering>${app.filtering.enabled}</filtering>
|
<filtering>true</filtering>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<testResources>
|
<testResources>
|
||||||
@@ -157,6 +160,10 @@
|
|||||||
<testResource>
|
<testResource>
|
||||||
<directory>test/resources</directory>
|
<directory>test/resources</directory>
|
||||||
</testResource>
|
</testResource>
|
||||||
|
<testResource>
|
||||||
|
<directory>src/test/properties/local</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
@@ -166,6 +173,7 @@
|
|||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>add-source</id>
|
<id>add-source</id>
|
||||||
|
<phase>generate-sources</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>add-source</goal>
|
<goal>add-source</goal>
|
||||||
</goals>
|
</goals>
|
||||||
@@ -177,6 +185,7 @@
|
|||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>add-test-source</id>
|
<id>add-test-source</id>
|
||||||
|
<phase>generate-test-sources</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>add-test-source</goal>
|
<goal>add-test-source</goal>
|
||||||
</goals>
|
</goals>
|
||||||
@@ -188,6 +197,7 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
@@ -207,28 +217,12 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>properties-maven-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>initialize</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>read-project-properties</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<files>
|
|
||||||
<file>${basedir}/src/main/resources/local.properties</file>
|
|
||||||
</files>
|
|
||||||
<quiet>true</quiet>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
||||||
|
<runOrder>alphabetical</runOrder>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/AllUnitTestSuite.class</include>
|
<include>**/AllUnitTestSuite.class</include>
|
||||||
</includes>
|
</includes>
|
||||||
@@ -263,13 +257,14 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>fetch-share-services-amp</id>
|
<id>fetch-artefacts-for-docker-build</id>
|
||||||
<phase>process-test-resources</phase>
|
<phase>prepare-package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>copy</goal>
|
<goal>copy</goal>
|
||||||
</goals>
|
</goals>
|
||||||
@@ -292,32 +287,14 @@
|
|||||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
|
||||||
<id>unpack-alfresco</id>
|
|
||||||
<phase>prepare-package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>unpack</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${app.amp.client.war.folder}</outputDirectory>
|
|
||||||
<artifactItems>
|
|
||||||
<artifactItem>
|
|
||||||
<groupId>org.alfresco</groupId>
|
|
||||||
<artifactId>content-services-community</artifactId>
|
|
||||||
<type>war</type>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</artifactItem>
|
|
||||||
</artifactItems>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
<groupId>org.alfresco.maven.plugin</groupId>
|
||||||
<artifactId>alfresco-maven-plugin</artifactId>
|
<artifactId>alfresco-maven-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>attach-alfresco-governance-services-jar</id>
|
|
||||||
<goals>
|
<goals>
|
||||||
<goal>amp</goal>
|
<goal>amp</goal>
|
||||||
</goals>
|
</goals>
|
||||||
@@ -327,27 +304,9 @@
|
|||||||
<includeDependencies>true</includeDependencies>
|
<includeDependencies>true</includeDependencies>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
|
||||||
<id>amps-to-war-overlay</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>install</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>install-share-services-amp</id>
|
|
||||||
<goals>
|
|
||||||
<goal>install</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>prepare-package</phase>
|
|
||||||
<configuration>
|
|
||||||
<backup>true</backup>
|
|
||||||
<ampLocation>${project.build.directory}/alfresco-share-services-${project.version}.amp</ampLocation>
|
|
||||||
<warLocation>${app.amp.client.war.folder}</warLocation>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
@@ -364,6 +323,7 @@
|
|||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>license-maven-plugin</artifactId>
|
<artifactId>license-maven-plugin</artifactId>
|
||||||
@@ -395,6 +355,7 @@
|
|||||||
<alfresco.db.datasource.class>org.gjt.mm.mysql.Driver</alfresco.db.datasource.class>
|
<alfresco.db.datasource.class>org.gjt.mm.mysql.Driver</alfresco.db.datasource.class>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>use-postgres</id>
|
<id>use-postgres</id>
|
||||||
<properties>
|
<properties>
|
||||||
@@ -552,8 +513,8 @@
|
|||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<!-- builds "image:latest" locally -->
|
|
||||||
<id>build-docker-images</id>
|
<id>build-docker-images</id>
|
||||||
|
<!-- builds "image:latest" locally -->
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@@ -1,31 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!-- ===================================================================================================================
|
|
||||||
This context file is used only in a development IDE for rapid development,
|
|
||||||
it is never released with the Alfresco.war
|
|
||||||
=================================================================================================================-->
|
|
||||||
|
|
||||||
<!-- Setup docBase to something like repo-amp/target/repo-amp-war
|
|
||||||
and path to /alfresco
|
|
||||||
The Alfresco.war 5.0 does not have a webapp (it used to have Alfresco Explorer but not anymore)
|
|
||||||
that we will access, so this docBase might not be needed
|
|
||||||
-->
|
|
||||||
<Context docBase="${app.amp.client.war.folder}" path="${alfresco.client.contextPath}">
|
|
||||||
|
|
||||||
<Resources className="org.apache.naming.resources.VirtualDirContext"
|
|
||||||
extraResourcePaths="/=${project.build.directory}/${project.build.finalName}/web" />
|
|
||||||
|
|
||||||
<!-- Setup the virtual class path like this:
|
|
||||||
1) target/classes
|
|
||||||
2) target/${project.build.finalName}/config
|
|
||||||
3) target/test-classes
|
|
||||||
|
|
||||||
This way mvn compile can be invoked and all changes will be picked up
|
|
||||||
-->
|
|
||||||
<Loader searchVirtualFirst="true"
|
|
||||||
className="org.apache.catalina.loader.VirtualWebappLoader"
|
|
||||||
virtualClasspath="${project.build.outputDirectory};${project.build.directory}/${project.build.finalName}/config;${project.build.testOutputDirectory}" />
|
|
||||||
|
|
||||||
|
|
||||||
<!-- This enables hot reloading of web resources from uncompressed jars (while in prod they would be loaded from WEB-INF/lib/{\*.jar}/META-INF/resources -->
|
|
||||||
<JarScanner scanAllDirectories="true" />
|
|
||||||
</Context>
|
|
@@ -49,6 +49,7 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<useSeparateTomcatClassLoader>true</useSeparateTomcatClassLoader>
|
||||||
<path>/api-explorer</path>
|
<path>/api-explorer</path>
|
||||||
<port>8085</port>
|
<port>8085</port>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
11
pom.xml
11
pom.xml
@@ -875,13 +875,10 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>2.22.2</version>
|
<version>2.22.2</version>
|
||||||
<configuration>
|
</plugin>
|
||||||
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
<plugin>
|
||||||
<runOrder>alphabetical</runOrder>
|
<artifactId>maven-failsafe-plugin</artifactId>
|
||||||
<argLine>
|
<version>2.22.2</version>
|
||||||
--illegal-access=permit
|
|
||||||
</argLine>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
Reference in New Issue
Block a user