RA-482: Added enterprise-distribution and enterprise-installer pom files.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/services/full-installer/trunk@108774 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jean-Pierre Huynh
2015-07-22 16:20:03 +00:00
parent d18caa2315
commit 650d25f7a5
5 changed files with 336 additions and 7 deletions

View File

@@ -13,6 +13,7 @@
<!-- To replace in share-config-custom.xml -->
<properties>
<BITROCK_TOMCAT_PORT>8080</BITROCK_TOMCAT_PORT>
<alfresco.platform.edition>community</alfresco.platform.edition>
</properties>
<dependencies>

View File

@@ -14,7 +14,7 @@
<!-- Platform Distribution -->
<fileSet>
<directory>${project.build.directory}/dependency/alfresco-platform-community-${alfresco.platform.version}</directory>
<directory>${project.build.directory}/dependency/alfresco-platform-${alfresco.platform.edition}-${alfresco.platform.version}</directory>
<outputDirectory/>
</fileSet>

View File

@@ -13,27 +13,27 @@
<!-- WARs to include in the EAR -->
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-enterprise</artifactId>
<version>${project.version}</version>
<artifactId>alfresco-platform-enterprise</artifactId>
<version>${alfresco.platform.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>share</artifactId>
<version>${dependency.share.version}</version>
<version>${alfresco.share.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-enterprise-vti-bin</artifactId>
<version>${project.version}</version>
<version>${alfresco.platform.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-enterprise-server-root</artifactId>
<version>${project.version}</version>
<version>${alfresco.platform.version}</version>
<type>war</type>
</dependency>
@@ -42,7 +42,7 @@
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-platform-enterprise-distributionzip</artifactId>
<version>${project.version}</version>
<version>${alfresco.platform.version}</version>
<type>zip</type>
<scope>provided</scope>
</dependency>

View File

@@ -0,0 +1,123 @@
<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>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-full-installation</artifactId>
<version>2015-1-EA-SNAPSHOT</version>
</parent>
<artifactId>alfresco-enterprise-distribution</artifactId>
<packaging>jar</packaging>
<name>Alfresco Full Distribution (Enterprise Edition)</name>
<!-- To replace in share-config-custom.xml -->
<properties>
<BITROCK_TOMCAT_PORT>8080</BITROCK_TOMCAT_PORT>
<alfresco.platform.edition>enterprise</alfresco.platform.edition>
</properties>
<dependencies>
<!-- Platform Distribution -->
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-platform-enterprise-distributionzip</artifactId>
<version>${alfresco.platform.version}</version>
<type>zip</type>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Solr4 Distribution -->
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-solr4-distribution</artifactId>
<version>${alfresco.share.version}</version>
<type>zip</type>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Share Distribution -->
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-share-distribution</artifactId>
<version>${alfresco.share.version}</version>
<type>zip</type>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<finalName>alfresco-enterprise-${project.version}</finalName>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>extract-keystore</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-platform-enterprise-distributionzip</artifactId>
<version>${alfresco.platform.version}</version>
<type>zip</type>
</artifactItem>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-solr4-distribution</artifactId>
<version>${alfresco.platform.version}</version>
<type>zip</type>
<outputDirectory>${project.build.directory}/dependency/solr4</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-share-distribution</artifactId>
<version>${alfresco.share.version}</version>
<type>zip</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>../distribution/src/assembly/full-distribution.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,205 @@
<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>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-full-installation</artifactId>
<version>2015-1-EA-SNAPSHOT</version>
</parent>
<artifactId>alfresco-enterprise-installer</artifactId>
<packaging>pom</packaging>
<name>Alfresco Enterprise Full Installers</name>
<properties>
<binaries.folder>${user.home}/binaries</binaries.folder>
<bitrock.folder>${project.build.directory}/installbuilder</bitrock.folder>
<signing.key.location>${binaries.folder}/build-classpath/code-signing</signing.key.location>
<license.file.location>${binaries.folder}/build-classpath/license.xml</license.file.location>
<bitrock.arguments>
project.version=${project.version}
project.fullName='Alfresco One Platform ${project.version}'
project.osxSigningPkcs12File=${signing.key.location}/Alfresco-Software-Ltd-osx.p12
project.osxSigningPkcs12Password=${p12Password}
project.windowsSigningPkcs12File=${signing.key.location}/Alfresco-Software-Ltd.p12
project.windowsSigningPkcs12Password=${p12Password}
alfresco_edition=enterprise
alfrescogoogledocs_component_enabled=1
alfrescosharepoint_component_enabled=1
alfrescosolr_component_enabled=1
alfrescowcmqs_component_enabled=1
project.outputDirectory=${project.build.directory}
</bitrock.arguments>
<!-- Override alfresco.package.name for the installer naming (Different from the zip distribution naming) -->
<alfresco.package.name>alfresco-enterprise</alfresco.package.name>
</properties>
<dependencies>
<!-- Import the dependencies from the Community installer -->
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-community-installer</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>get-distribution</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-installer-resources</artifactId>
<version>${alfresco.platform.version}</version>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-enterprise-distribution</artifactId>
<version>${project.version}</version>
<type>zip</type>
<outputDirectory>${project.build.directory}/distribution</outputDirectory>
</artifactItem>
<!-- Solr1 Distribution -->
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-solr1-distribution</artifactId>
<version>${alfresco.platform.version}</version>
<type>zip</type>
<outputDirectory>${project.build.directory}/distribution/${alfresco.package.name}-${project.version}/web-server/webapps</outputDirectory>
</artifactItem>
<!-- WCMQS Distribution -->
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-wcmqs-distribution</artifactId>
<version>${alfresco.share.version}</version>
<type>zip</type>
<outputDirectory>${project.build.directory}/wcmqs</outputDirectory>
</artifactItem>
<!-- WCMQS War Config file -->
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-wcmqs-web</artifactId>
<version>${alfresco.share.version}</version>
<classifier>classes</classifier>
<outputDirectory>${project.build.directory}/wcmqs</outputDirectory>
<includes>alfresco/web-extension/**</includes>
</artifactItem>
<!-- WCMQS Client Config file -->
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-wcmqs-client-api</artifactId>
<version>${alfresco.share.version}</version>
<outputDirectory>${project.build.directory}/wcmqs</outputDirectory>
<includes>alfresco/extension/**</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!-- Override local resources - alfresco-global.properties, etc. -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>override-local-resources</id>
<phase>prepare-package</phase>
<goals>
<goal>resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<overwrite>true</overwrite>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>properties</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- Extract all the binaries: Tomcat, PostgreSQL, Java, LibreOffice, Installbuilder-->
<execution>
<id>extract-binaries-tgz</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<ant antfile="${project.build.directory}/classes/extract-binaries.xml" />
</target>
</configuration>
</execution>
<!-- Build installers -->
<execution>
<id>build-installers</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<workingDirectory>${project.build.directory}/classes/bitrock</workingDirectory>
<target>
<ant antfile="${project.build.directory}/classes/build-installers.xml" />
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- Profiles to set the right path to Bitrock Builder executable -->
<profile>
<id>win-bitrock</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<bitrock.executable>${bitrock.folder}/bin/builder-cli.exe</bitrock.executable>
</properties>
</profile>
<profile>
<id>linux-bitrock</id>
<activation>
<os>
<family>linux</family>
</os>
</activation>
<properties>
<bitrock.executable>${bitrock.folder}/bin/builder</bitrock.executable>
</properties>
</profile>
<profile>
<id>osx-bitrock</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<properties>
<bitrock.executable>${bitrock.folder}/bin/builder</bitrock.executable>
</properties>
</profile>
</profiles>
</project>