mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-2575 (Investigate compatibility issues with 5.1)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@111875 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
12
pom.xml
12
pom.xml
@@ -64,6 +64,18 @@
|
|||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${alfresco.groupId}</groupId>
|
||||||
|
<artifactId>alfresco-platform-distribution</artifactId>
|
||||||
|
<version>${alfresco.version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>rm-server</module>
|
<module>rm-server</module>
|
||||||
<module>rm-share</module>
|
<module>rm-share</module>
|
||||||
|
@@ -1,312 +1,317 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
<parent>
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<groupId>org.alfresco</groupId>
|
<parent>
|
||||||
<artifactId>alfresco-rm-parent</artifactId>
|
<groupId>org.alfresco</groupId>
|
||||||
<version>2.4-SNAPSHOT</version>
|
<artifactId>alfresco-rm-parent</artifactId>
|
||||||
</parent>
|
<version>2.4-SNAPSHOT</version>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
</parent>
|
||||||
<artifactId>alfresco-rm-automation</artifactId>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<properties>
|
<artifactId>alfresco-rm-automation</artifactId>
|
||||||
<selenium.version>2.45.0</selenium.version>
|
<properties>
|
||||||
<spring.version>4.0.5.RELEASE</spring.version>
|
<selenium.version>2.45.0</selenium.version>
|
||||||
<!-- Within the rm-automation project only, we want source code to be Java 8. -->
|
<spring.version>4.0.5.RELEASE</spring.version>
|
||||||
<maven.build.sourceVersion>1.8</maven.build.sourceVersion>
|
<!-- Within the rm-automation project only, we want source code to be Java 8. -->
|
||||||
</properties>
|
<maven.build.sourceVersion>1.8</maven.build.sourceVersion>
|
||||||
<dependencyManagement>
|
</properties>
|
||||||
<dependencies>
|
<build>
|
||||||
<dependency>
|
<plugins>
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
<!-- Additional source folder to be added: source/compatibility -->
|
||||||
<artifactId>alfresco-platform-distribution</artifactId>
|
<plugin>
|
||||||
<version>${alfresco.version}</version>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<type>pom</type>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
<scope>import</scope>
|
<executions>
|
||||||
</dependency>
|
<execution>
|
||||||
</dependencies>
|
<id>add-test-source</id>
|
||||||
</dependencyManagement>
|
<goals>
|
||||||
<build>
|
<goal>add-test-source</goal>
|
||||||
<plugins>
|
</goals>
|
||||||
<!-- Additional source folder to be added: source/compatibility -->
|
<configuration>
|
||||||
<plugin>
|
<sources>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<source>src/unit-test/java</source>
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
</sources>
|
||||||
<executions>
|
</configuration>
|
||||||
<execution>
|
</execution>
|
||||||
<id>add-test-source</id>
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<redirectTestOutputToFile>false</redirectTestOutputToFile>
|
||||||
|
<suiteXmlFiles>
|
||||||
|
<suiteXmlFile>${project.build.testOutputDirectory}/testng.xml</suiteXmlFile>
|
||||||
|
</suiteXmlFiles>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<!-- Configuration triggered by mvn antrun:run, used by Bamboo to stop server -->
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>default-cli</id>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<echo>Stopping Alfresco...</echo>
|
||||||
|
<exec executable="${basedir}/target/alf-installation/alfresco.sh" dir="target/alf-installation" failonerror="true">
|
||||||
|
<arg value="stop" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.alfresco.test</groupId>
|
||||||
|
<artifactId>dataprep</artifactId>
|
||||||
|
<version>1.4</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.alfresco.test</groupId>
|
||||||
|
<artifactId>alfresco-testng</artifactId>
|
||||||
|
<version>1.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.alfresco</groupId>
|
||||||
|
<artifactId>selenium-grid</artifactId>
|
||||||
|
<version>1.4</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-beans</artifactId>
|
||||||
|
<version>${spring.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-context</artifactId>
|
||||||
|
<version>${spring.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-tx</artifactId>
|
||||||
|
<version>${spring.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-test</artifactId>
|
||||||
|
<version>${spring.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.testng</groupId>
|
||||||
|
<artifactId>testng</artifactId>
|
||||||
|
<version>6.8.8</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>ru.yandex.qatools.htmlelements</groupId>
|
||||||
|
<artifactId>htmlelements-all</artifactId>
|
||||||
|
<version>1.12</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>ru.yandex.qatools.properties</groupId>
|
||||||
|
<artifactId>properties-loader</artifactId>
|
||||||
|
<version>1.5</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.tomakehurst</groupId>
|
||||||
|
<artifactId>wiremock</artifactId>
|
||||||
|
<version>1.56</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.chemistry.opencmis</groupId>
|
||||||
|
<artifactId>chemistry-opencmis-client-bindings</artifactId>
|
||||||
|
<version>0.11.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.chemistry.opencmis</groupId>
|
||||||
|
<artifactId>chemistry-opencmis-client-api</artifactId>
|
||||||
|
<version>0.11.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.chemistry.opencmis</groupId>
|
||||||
|
<artifactId>chemistry-opencmis-client-impl</artifactId>
|
||||||
|
<version>0.11.0</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>install-alfresco</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- Download and install the latest enterprise alfresco installer -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>fetch-installer</id>
|
||||||
|
<phase>generate-test-resources</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>add-test-source</goal>
|
<goal>run</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<sources>
|
<target>
|
||||||
<source>src/unit-test/java</source>
|
<echo>Recreating database...</echo>
|
||||||
</sources>
|
<sql driver="org.postgresql.Driver" url="jdbc:postgresql:template1" userid="alfresco" password="alfresco" autocommit="true">drop database if exists alfresco; create database alfresco</sql>
|
||||||
|
<echo>Downloading Alfresco installer...</echo>
|
||||||
|
<sshexec username="tomcat" host="pbam01.alfresco.com" keyfile="${user.home}/.ssh/id_rsa" outputproperty="installerPath" command="ls -rt ${enterprise.installer.path} | tail -1 | tr ' ' '?' " />
|
||||||
|
<scp remoteFile="tomcat@pbam01.alfresco.com:${installerPath}" localTofile="target/alf-installer.bin" keyfile="${user.home}/.ssh/id_rsa" />
|
||||||
|
<chmod file="target/alf-installer.bin" perm="a+x" verbose="true" />
|
||||||
|
<echo>Installing Alfresco...</echo>
|
||||||
|
<exec executable="${basedir}/target/alf-installer.bin" dir="target" failonerror="true">
|
||||||
|
<arg line="--mode unattended --alfresco_admin_password admin --disable-components postgres,alfrescowcmqs --jdbc_username alfresco --jdbc_password alfresco --prefix ${basedir}/target/alf-installation" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
<dependencies>
|
||||||
<plugin>
|
<dependency>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<groupId>org.apache.ant</groupId>
|
||||||
<configuration>
|
<artifactId>ant-jsch</artifactId>
|
||||||
<redirectTestOutputToFile>false</redirectTestOutputToFile>
|
<version>1.8.2</version>
|
||||||
<suiteXmlFiles>
|
</dependency>
|
||||||
<suiteXmlFile>${project.build.testOutputDirectory}/testng.xml</suiteXmlFile>
|
<dependency>
|
||||||
</suiteXmlFiles>
|
<groupId>postgresql</groupId>
|
||||||
</configuration>
|
<artifactId>postgresql</artifactId>
|
||||||
</plugin>
|
<version>9.1-901-1.jdbc4</version>
|
||||||
<plugin>
|
</dependency>
|
||||||
<!-- Configuration triggered by mvn antrun:run, used by Bamboo to stop server -->
|
</dependencies>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
</plugin>
|
||||||
<executions>
|
<plugin>
|
||||||
<execution>
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
<id>default-cli</id>
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>fetch-amps</id>
|
||||||
|
<phase>process-test-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy</goal>
|
||||||
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<artifactItems>
|
||||||
<echo>Stopping Alfresco...</echo>
|
<artifactItem>
|
||||||
<exec executable="${basedir}/target/alf-installation/alfresco.sh" dir="target/alf-installation" failonerror="true">
|
<groupId>org.alfresco</groupId>
|
||||||
<arg value="stop" />
|
<artifactId>alfresco-rm-share</artifactId>
|
||||||
</exec>
|
<version>${project.version}</version>
|
||||||
</target>
|
<classifier>amp</classifier>
|
||||||
|
<type>amp</type>
|
||||||
|
</artifactItem>
|
||||||
|
<artifactItem>
|
||||||
|
<groupId>org.alfresco</groupId>
|
||||||
|
<artifactId>alfresco-rm-server</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<classifier>amp</classifier>
|
||||||
|
<type>amp</type>
|
||||||
|
</artifactItem>
|
||||||
|
</artifactItems>
|
||||||
|
<outputDirectory>${project.build.directory}/amps</outputDirectory>
|
||||||
|
<useBaseVersion>true</useBaseVersion>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
<plugin>
|
||||||
</build>
|
<groupId>org.alfresco.maven.plugin</groupId>
|
||||||
<dependencies>
|
<artifactId>alfresco-maven-plugin</artifactId>
|
||||||
<dependency>
|
<extensions>true</extensions>
|
||||||
<groupId>org.alfresco.test</groupId>
|
<executions>
|
||||||
<artifactId>dataprep</artifactId>
|
<execution>
|
||||||
<version>1.4</version>
|
<id>install-server-amp</id>
|
||||||
</dependency>
|
<goals>
|
||||||
<dependency>
|
<goal>install</goal>
|
||||||
<groupId>org.alfresco.test</groupId>
|
</goals>
|
||||||
<artifactId>alfresco-testng</artifactId>
|
<phase>process-test-resources</phase>
|
||||||
<version>1.1</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.alfresco</groupId>
|
|
||||||
<artifactId>selenium-grid</artifactId>
|
|
||||||
<version>1.4</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework</groupId>
|
|
||||||
<artifactId>spring-beans</artifactId>
|
|
||||||
<version>${spring.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework</groupId>
|
|
||||||
<artifactId>spring-context</artifactId>
|
|
||||||
<version>${spring.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework</groupId>
|
|
||||||
<artifactId>spring-tx</artifactId>
|
|
||||||
<version>${spring.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework</groupId>
|
|
||||||
<artifactId>spring-test</artifactId>
|
|
||||||
<version>${spring.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.testng</groupId>
|
|
||||||
<artifactId>testng</artifactId>
|
|
||||||
<version>6.8.8</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>ru.yandex.qatools.htmlelements</groupId>
|
|
||||||
<artifactId>htmlelements-all</artifactId>
|
|
||||||
<version>1.12</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>ru.yandex.qatools.properties</groupId>
|
|
||||||
<artifactId>properties-loader</artifactId>
|
|
||||||
<version>1.5</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.github.tomakehurst</groupId>
|
|
||||||
<artifactId>wiremock</artifactId>
|
|
||||||
<version>1.56</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>install-alfresco</id>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<!-- Download and install the latest enterprise alfresco installer -->
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>fetch-installer</id>
|
|
||||||
<phase>generate-test-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<target>
|
|
||||||
<echo>Recreating database...</echo>
|
|
||||||
<sql driver="org.postgresql.Driver" url="jdbc:postgresql:template1" userid="alfresco" password="alfresco" autocommit="true">drop database if exists alfresco; create database alfresco</sql>
|
|
||||||
<echo>Downloading Alfresco installer...</echo>
|
|
||||||
<sshexec username="tomcat" host="pbam01.alfresco.com" keyfile="${user.home}/.ssh/id_rsa" outputproperty="installerPath" command="ls -rt ${enterprise.installer.path} | tail -1 | tr ' ' '?' " />
|
|
||||||
<scp remoteFile="tomcat@pbam01.alfresco.com:${installerPath}" localTofile="target/alf-installer.bin" keyfile="${user.home}/.ssh/id_rsa" />
|
|
||||||
<chmod file="target/alf-installer.bin" perm="a+x" verbose="true" />
|
|
||||||
<echo>Installing Alfresco...</echo>
|
|
||||||
<exec executable="${basedir}/target/alf-installer.bin" dir="target" failonerror="true">
|
|
||||||
<arg line="--mode unattended --alfresco_admin_password admin --disable-components postgres,alfrescowcmqs --jdbc_username alfresco --jdbc_password alfresco --prefix ${basedir}/target/alf-installation" />
|
|
||||||
</exec>
|
|
||||||
</target>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.ant</groupId>
|
|
||||||
<artifactId>ant-jsch</artifactId>
|
|
||||||
<version>1.8.2</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>postgresql</groupId>
|
|
||||||
<artifactId>postgresql</artifactId>
|
|
||||||
<version>9.1-901-1.jdbc4</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>fetch-amps</id>
|
|
||||||
<phase>process-test-resources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>copy</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<artifactItems>
|
|
||||||
<artifactItem>
|
|
||||||
<groupId>org.alfresco</groupId>
|
|
||||||
<artifactId>alfresco-rm-share</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<classifier>amp</classifier>
|
|
||||||
<type>amp</type>
|
|
||||||
</artifactItem>
|
|
||||||
<artifactItem>
|
|
||||||
<groupId>org.alfresco</groupId>
|
|
||||||
<artifactId>alfresco-rm-server</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<classifier>amp</classifier>
|
|
||||||
<type>amp</type>
|
|
||||||
</artifactItem>
|
|
||||||
</artifactItems>
|
|
||||||
<outputDirectory>${project.build.directory}/amps</outputDirectory>
|
|
||||||
<useBaseVersion>true</useBaseVersion>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
|
||||||
<artifactId>alfresco-maven-plugin</artifactId>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>install-server-amp</id>
|
|
||||||
<goals>
|
|
||||||
<goal>install</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>process-test-resources</phase>
|
|
||||||
<configuration>
|
|
||||||
<backup>true</backup>
|
|
||||||
<ampLocation>${project.build.directory}/amps/alfresco-rm-server-${project.version}-amp.amp</ampLocation>
|
|
||||||
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/alfresco.war</warLocation>
|
|
||||||
<classifier>amp</classifier>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>install-share-amp</id>
|
|
||||||
<goals>
|
|
||||||
<goal>install</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>process-test-resources</phase>
|
|
||||||
<configuration>
|
|
||||||
<backup>true</backup>
|
|
||||||
<ampLocation>${project.build.directory}/amps/alfresco-rm-share-${project.version}-amp.amp</ampLocation>
|
|
||||||
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/share.war</warLocation>
|
|
||||||
<classifier>amp</classifier>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
|
||||||
<id>run-alfresco</id>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<!-- Fetch JaCoCo agent and set the argLine property accordingly -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.jacoco</groupId>
|
|
||||||
<artifactId>jacoco-maven-plugin</artifactId>
|
|
||||||
<version>0.6.3.201306030806</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>prepare-jacoco</id>
|
|
||||||
<goals>
|
|
||||||
<goal>prepare-agent</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<includes>
|
<backup>true</backup>
|
||||||
<include>org.alfresco.*</include>
|
<ampLocation>${project.build.directory}/amps/alfresco-rm-server-${project.version}-amp.amp</ampLocation>
|
||||||
</includes>
|
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/alfresco.war</warLocation>
|
||||||
|
<classifier>amp</classifier>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</execution>
|
||||||
<!-- Starts/stop the installed Alfresco -->
|
<execution>
|
||||||
<plugin>
|
<id>install-share-amp</id>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<goals>
|
||||||
<executions>
|
<goal>install</goal>
|
||||||
<execution>
|
</goals>
|
||||||
<id>start-alfresco</id>
|
<phase>process-test-resources</phase>
|
||||||
<phase>process-test-classes</phase>
|
<configuration>
|
||||||
<goals>
|
<backup>true</backup>
|
||||||
<goal>run</goal>
|
<ampLocation>${project.build.directory}/amps/alfresco-rm-share-${project.version}-amp.amp</ampLocation>
|
||||||
</goals>
|
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/share.war</warLocation>
|
||||||
<configuration>
|
<classifier>amp</classifier>
|
||||||
<target>
|
</configuration>
|
||||||
<echo>Starting Alfresco...</echo>
|
</execution>
|
||||||
<exec executable="${basedir}/target/alf-installation/alfresco.sh" dir="target/alf-installation" failonerror="true">
|
</executions>
|
||||||
<arg value="start" />
|
</plugin>
|
||||||
<env key="CATALINA_OPTS" value="${argLine}" />
|
</plugins>
|
||||||
</exec>
|
</build>
|
||||||
<sleep minutes="5" />
|
</profile>
|
||||||
</target>
|
<profile>
|
||||||
</configuration>
|
<id>run-alfresco</id>
|
||||||
</execution>
|
<build>
|
||||||
<execution>
|
<plugins>
|
||||||
<id>stop-alfresco</id>
|
<!-- Fetch JaCoCo agent and set the argLine property accordingly -->
|
||||||
<phase>post-integration-test</phase>
|
<plugin>
|
||||||
<goals>
|
<groupId>org.jacoco</groupId>
|
||||||
<goal>run</goal>
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
</goals>
|
<version>0.6.3.201306030806</version>
|
||||||
<configuration>
|
<executions>
|
||||||
<target>
|
<execution>
|
||||||
<echo>Stopping Alfresco...</echo>
|
<id>prepare-jacoco</id>
|
||||||
<exec executable="${basedir}/target/alf-installation/alfresco.sh" dir="target/alf-installation" failonerror="true">
|
<goals>
|
||||||
<arg value="stop" />
|
<goal>prepare-agent</goal>
|
||||||
</exec>
|
</goals>
|
||||||
</target>
|
</execution>
|
||||||
</configuration>
|
</executions>
|
||||||
</execution>
|
<configuration>
|
||||||
</executions>
|
<includes>
|
||||||
</plugin>
|
<include>org.alfresco.*</include>
|
||||||
</plugins>
|
</includes>
|
||||||
</build>
|
</configuration>
|
||||||
</profile>
|
</plugin>
|
||||||
</profiles>
|
<!-- Starts/stop the installed Alfresco -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>start-alfresco</id>
|
||||||
|
<phase>process-test-classes</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<echo>Starting Alfresco...</echo>
|
||||||
|
<exec executable="${basedir}/target/alf-installation/alfresco.sh" dir="target/alf-installation" failonerror="true">
|
||||||
|
<arg value="start" />
|
||||||
|
<env key="CATALINA_OPTS" value="${argLine}" />
|
||||||
|
</exec>
|
||||||
|
<sleep minutes="5" />
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>stop-alfresco</id>
|
||||||
|
<phase>post-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<echo>Stopping Alfresco...</echo>
|
||||||
|
<exec executable="${basedir}/target/alf-installation/alfresco.sh" dir="target/alf-installation" failonerror="true">
|
||||||
|
<arg value="stop" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -19,17 +19,6 @@
|
|||||||
<webapp.id.name>alfresco</webapp.id.name>
|
<webapp.id.name>alfresco</webapp.id.name>
|
||||||
<webapp.id>${webapp.id.name}</webapp.id>
|
<webapp.id>${webapp.id.name}</webapp.id>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencyManagement>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>${alfresco.groupId}</groupId>
|
|
||||||
<artifactId>alfresco-platform-distribution</artifactId>
|
|
||||||
<version>${alfresco.version}</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</dependencyManagement>
|
|
||||||
<build>
|
<build>
|
||||||
<sourceDirectory>source/java</sourceDirectory>
|
<sourceDirectory>source/java</sourceDirectory>
|
||||||
<testSourceDirectory>test/java</testSourceDirectory>
|
<testSourceDirectory>test/java</testSourceDirectory>
|
||||||
|
Reference in New Issue
Block a user