RM-1104 (Investigate the integrate of UI automation tests into RM build)

* Apply the amp files to the war files with alfresco maven plugin

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/UIAUTOMATION@58838 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2013-12-10 18:15:36 +00:00
parent ca264fd225
commit 96d760abc8
2 changed files with 244 additions and 220 deletions

416
pom.xml
View File

@@ -7,285 +7,287 @@
<!-- ** against Alfresco with Maven. POMs, dependencies and ** --> <!-- ** against Alfresco with Maven. POMs, dependencies and ** -->
<!-- ** projects information are up to date and released ** --> <!-- ** projects information are up to date and released ** -->
<!-- ** together with the official Alfresco artifacts at ** --> <!-- ** together with the official Alfresco artifacts at ** -->
<!---** https://artifacts.alfresco.com. ** --> <!---** https://artifacts.alfresco.com. ** -->
<!---** Fox the SDK and Maven project samples check ** --> <!---** Fox the SDK and Maven project samples check ** -->
<!---** http://code.google.com/p/maven-alfresco-archetypes/ ** --> <!---** http://code.google.com/p/maven-alfresco-archetypes/ ** -->
<!-- ********************************************************* --> <!-- ********************************************************* -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-parent</artifactId> <artifactId>alfresco-rm-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>2.2-SNAPSHOT</version> <version>2.2-SNAPSHOT</version>
<name>Alfresco Records Management</name> <name>Alfresco Records Management</name>
<url>http://www.alfresco.org/</url> <url>http://www.alfresco.org/</url>
<inceptionYear>2005</inceptionYear> <inceptionYear>2005</inceptionYear>
<organization> <organization>
<name>Alfresco Software</name> <name>Alfresco Software</name>
<url>http://www.alfresco.org/</url> <url>http://www.alfresco.org/</url>
</organization> </organization>
<licenses> <licenses>
<license> <license>
<name>LGPL 3</name> <name>LGPL 3</name>
</license> </license>
</licenses> </licenses>
<scm> <scm>
<connection>https://svn.alfresco.com/repos/alfresco-open-mirror/modules/recordsmanagement/HEAD</connection> <connection>https://svn.alfresco.com/repos/alfresco-open-mirror/modules/recordsmanagement/HEAD</connection>
<developerConnection>https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD</developerConnection> <developerConnection>https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD</developerConnection>
</scm> </scm>
<issueManagement> <issueManagement>
<system>JIRA</system> <system>JIRA</system>
<url>https://issues.alfresco.com/jira/browse/RM</url> <url>https://issues.alfresco.com/jira/browse/RM</url>
</issueManagement> </issueManagement>
<ciManagement> <ciManagement>
<system>Bamboo</system> <system>Bamboo</system>
<url>https://bamboo.alfresco.com/bamboo/browse/RM</url> <url>https://bamboo.alfresco.com/bamboo/browse/RM</url>
</ciManagement> </ciManagement>
<prerequisites> <prerequisites>
<maven>3.0.3</maven> <maven>3.0.3</maven>
</prerequisites> </prerequisites>
<repositories> <repositories>
<!-- Pointing to Alfresco repository group. Value is switched between community and enterprise --> <!-- Pointing to Alfresco repository group. Value is switched between community and enterprise -->
<repository> <repository>
<id>alfresco-public</id> <id>alfresco-public</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url> <url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
</repository> </repository>
</repositories> </repositories>
<distributionManagement> <distributionManagement>
<!-- For now internal releases repositories --> <!-- For now internal releases repositories -->
<repository> <repository>
<id>alfresco-internal</id> <id>alfresco-internal</id>
<url>https://artifacts.alfresco.com/nexus/content/repositories/internal-releases/</url> <url>https://artifacts.alfresco.com/nexus/content/repositories/internal-releases/</url>
</repository> </repository>
<!-- For now internal snapshot repositories --> <!-- For now internal snapshot repositories -->
<snapshotRepository> <snapshotRepository>
<id>alfresco-internal-snapshots</id> <id>alfresco-internal-snapshots</id>
<url>https://artifacts.alfresco.com/nexus/content/repositories/internal-snapshots/</url> <url>https://artifacts.alfresco.com/nexus/content/repositories/internal-snapshots/</url>
</snapshotRepository> </snapshotRepository>
<site> <site>
<id>alfresco-site</id> <id>alfresco-site</id>
<name>Alfresco Maven site</name> <name>Alfresco Maven site</name>
<url>http://localhost/</url> <url>http://localhost/</url>
</site> </site>
</distributionManagement> </distributionManagement>
<modules> <modules>
<module>rm-server</module> <module>rm-server</module>
<module>rm-share</module> <module>rm-share</module>
</modules> </modules>
<properties> <properties>
<alfresco.base.version>4.2.0</alfresco.base.version> <alfresco.base.version>4.2.0</alfresco.base.version>
<!-- Database properties - default values to be overridden in settings.xml --> <!-- Database properties - default values to be overridden in settings.xml -->
<db.driver>org.postgresql.Driver</db.driver> <db.driver>org.postgresql.Driver</db.driver>
<db.name>alfresco</db.name> <db.name>alfresco</db.name>
<db.url>jdbc:postgresql:${db.name}</db.url> <db.url>jdbc:postgresql:${db.name}</db.url>
<db.master.url>jdbc:postgresql:template1</db.master.url> <db.master.url>jdbc:postgresql:template1</db.master.url>
<db.username>alfresco</db.username> <db.username>alfresco</db.username>
<db.password>alfresco</db.password> <db.password>alfresco</db.password>
<!-- Maven specific build properties --> <!-- Maven specific build properties -->
<maven.build.sourceVersion>1.7</maven.build.sourceVersion> <maven.alfresco.includeDependencies>false</maven.alfresco.includeDependencies>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.alfresco.version>1.1.1</maven.alfresco.version>
<maven.build.sourceVersion>1.7</maven.build.sourceVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Sonar specific properties --> <!-- Sonar specific properties -->
<sonar.jacoco.reportPath>${project.build.directory}/jacoco.exec</sonar.jacoco.reportPath> <sonar.jacoco.reportPath>${project.build.directory}/jacoco.exec</sonar.jacoco.reportPath>
</properties> </properties>
<build> <build>
<!-- Non standard folder layout --> <!-- Non standard folder layout -->
<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>
</resource> </resource>
</resources> </resources>
<testResources> <testResources>
<testResource> <testResource>
<directory>test/resources</directory> <directory>test/resources</directory>
</testResource> </testResource>
</testResources> </testResources>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version> <version>1.3.1</version>
<executions> <executions>
<execution> <execution>
<id>enforce-java</id> <id>enforce-java</id>
<goals> <goals>
<goal>enforce</goal> <goal>enforce</goal>
</goals> </goals>
<configuration> <configuration>
<rules> <rules>
<requireJavaVersion> <requireJavaVersion>
<version>1.7.0</version> <version>1.7.0</version>
</requireJavaVersion> </requireJavaVersion>
</rules> </rules>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
<!-- Defining version and some configuration of Maven plugins --> <!-- Defining version and some configuration of Maven plugins -->
<pluginManagement> <pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-clean-plugin</artifactId> <artifactId>maven-clean-plugin</artifactId>
<version>2.5</version> <version>2.5</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version> <version>3.1</version>
<configuration> <configuration>
<source>${maven.build.sourceVersion}</source> <source>${maven.build.sourceVersion}</source>
<target>${maven.build.sourceVersion}</target> <target>${maven.build.sourceVersion}</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version> <version>2.7</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-install-plugin</artifactId> <artifactId>maven-install-plugin</artifactId>
<version>2.5</version> <version>2.5</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>2.6</version> <version>2.6</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-site-plugin</artifactId> <artifactId>maven-site-plugin</artifactId>
<version>3.3</version> <version>3.3</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version> <version>2.4</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version> <version>2.8</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-help-plugin</artifactId> <artifactId>maven-help-plugin</artifactId>
<version>2.2</version> <version>2.2</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version> <version>2.4.1</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version> <version>2.2.1</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-failsafe-plugin</artifactId> <artifactId>maven-failsafe-plugin</artifactId>
<version>2.16</version> <version>2.16</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version> <version>2.16</version>
<configuration> <configuration>
<!-- To prevent tests alfresco.log to be created in project roots and bother while synchronizing with SCM --> <!-- To prevent tests alfresco.log to be created in project roots and bother while synchronizing with SCM -->
<redirectTestOutputToFile>true</redirectTestOutputToFile> <redirectTestOutputToFile>true</redirectTestOutputToFile>
<runOrder>alphabetical</runOrder> <runOrder>alphabetical</runOrder>
<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>
<systemPropertyVariables> <systemPropertyVariables>
<!-- Database related properties --> <!-- Database related properties -->
<db.url>${db.url}</db.url> <db.url>${db.url}</db.url>
<db.driver>${db.driver}</db.driver> <db.driver>${db.driver}</db.driver>
<db.name>${db.name}</db.name> <db.name>${db.name}</db.name>
<db.username>${db.username}</db.username> <db.username>${db.username}</db.username>
<db.password>${db.password}</db.password> <db.password>${db.password}</db.password>
<dir.root>${basedir}/target/alf_test_data</dir.root> <dir.root>${basedir}/target/alf_test_data</dir.root>
</systemPropertyVariables> </systemPropertyVariables>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version> <version>2.9.1</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-eclipse-plugin</artifactId> <artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version> <version>2.9</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version> <version>1.7</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>2.4</version> <version>2.4</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<version>2.4</version> <version>2.4</version>
<configuration> <configuration>
<warSourceDirectory>source/web</warSourceDirectory> <warSourceDirectory>source/web</warSourceDirectory>
<useCache>true</useCache> <useCache>true</useCache>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.mortbay.jetty</groupId> <groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId> <artifactId>jetty-maven-plugin</artifactId>
<version>8.1.13.v20130916</version> <version>8.1.13.v20130916</version>
<configuration> <configuration>
<webAppSourceDirectory>source/web</webAppSourceDirectory> <webAppSourceDirectory>source/web</webAppSourceDirectory>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.tomcat.maven</groupId> <groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId> <artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version> <version>2.1</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.codehaus.plexus</groupId> <groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId> <artifactId>plexus-archiver</artifactId>
<version>2.3</version> <version>2.3</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.antlr</groupId> <groupId>org.antlr</groupId>
<artifactId>antlr3-maven-plugin</artifactId> <artifactId>antlr3-maven-plugin</artifactId>
<version>${dependency.antlr.version}</version> <version>${dependency.antlr.version}</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId> <artifactId>sql-maven-plugin</artifactId>
<version>1.5</version> <version>1.5</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId> <artifactId>rpm-maven-plugin</artifactId>
<version>2.1-alpha-3</version> <version>2.1-alpha-3</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId> <artifactId>versions-maven-plugin</artifactId>
<version>2.1</version> <version>2.1</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId> <artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version> <version>1.8</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId> <groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId> <artifactId>replacer</artifactId>
<version>1.5.2</version> <version>1.5.2</version>
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>
</project> </project>

View File

@@ -1,21 +1,14 @@
<!-- ****************************************************** --> <?xml version="1.0"?><project xmlns="http://maven.apache.org/POM/4.0.0"
<!-- ** Experimental Maven build - use at your own risk! ** --> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<!-- ****************************************************** --> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-parent</artifactId> <artifactId>alfresco-rm-parent</artifactId>
<version>2.2-SNAPSHOT</version> <version>2.2-SNAPSHOT</version>
</parent> </parent>
<artifactId>rm-server</artifactId> <modelVersion>4.0.0</modelVersion>
<name>Alfresco RM</name> <artifactId>alfresco-rm-server</artifactId>
<properties> <name>Alfresco RM Server</name>
<app.filtering.enabled>true</app.filtering.enabled>
<maven.alfresco.version>1.1.1</maven.alfresco.version>
</properties>
<build> <build>
<resources> <resources>
<resource> <resource>
@@ -67,6 +60,29 @@
<artifactId>alfresco-maven-plugin</artifactId> <artifactId>alfresco-maven-plugin</artifactId>
<version>${maven.alfresco.version}</version> <version>${maven.alfresco.version}</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration>
<backup>true</backup>
<ampLocation>${project.build.directory}/${project.build.finalName}.amp</ampLocation>
<!-- FIXME -->
<warLocation>${project.build.directory}/../../../software/tomcat/webapps/alfresco.war</warLocation>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<overlays>
<overlay>
<groupId>org.alfresco</groupId>
<artifactId>alfresco</artifactId>
<type>war</type>
</overlay>
<overlay>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-server</artifactId>
<type>amp</type>
</overlay>
</overlays>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
@@ -126,6 +142,12 @@
</profile> </profile>
</profiles> </profiles>
<dependencies> <dependencies>
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco</artifactId>
<version>${alfresco.base.version}</version>
<type>war</type>
</dependency>
<dependency> <dependency>
<groupId>org.alfresco</groupId> <groupId>org.alfresco</groupId>
<artifactId>alfresco-remote-api</artifactId> <artifactId>alfresco-remote-api</artifactId>