Skip to content

Commit

Permalink
Split the maven build in 2 profiles standalone and all-in-one
Browse files Browse the repository at this point in the history
In a nutshell, the `standalone` profile includes just restcomm-connect. The `all-in-one` includes RC + RMS + RVD + WebRTC UI, just like it used to be before introducing these 2 profiles. (Eventually, we should be getting rid of this second one, but for the moment, for backwards compatibility and for moving forward with a smoother migration process, we should keep it around and just focus on improving the WAR + docker image generation on that part (in maven build, instead of `ant` + separate restcomm-docker repo).
  • Loading branch information
Yorgos Saslis committed May 5, 2018
1 parent 7daa4c6 commit b90b586
Showing 1 changed file with 161 additions and 92 deletions.
253 changes: 161 additions & 92 deletions release/restcomm-assembly-as7/pom.xml
Expand Up @@ -2,106 +2,175 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.restcomm</groupId>
<artifactId>assembly-parent</artifactId>
<version>9.0.0-SNAPSHOT</version>
</parent>
<groupId>org.restcomm</groupId>
<artifactId>assembly-parent</artifactId>
<version>9.0.0-SNAPSHOT</version>
</parent>
<groupId>org.restcomm</groupId>
<artifactId>assembly-as7</artifactId>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sipservletapi.version>3.2.0-89</sipservletapi.version>
</properties>
<dependencies>
<dependency>
<groupId>org.restcomm</groupId>
<artifactId>restcomm-connect-rvd</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>org.restcomm</groupId>
<artifactId>restcomm-connect.application</artifactId>
<type>war</type>
</dependency>

<dependency>
<groupId>org.restcomm</groupId>
<artifactId>restcomm-connect-management</artifactId>
<type>war</type>
</dependency>


<dependency>
<groupId>org.mobicents.webrtc</groupId>
<artifactId>webrtc-ui</artifactId>
<type>war</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>extractSipServlets</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
</properties>
<profiles>
<profile>
<id>all-in-one</id>
<dependencies>
<dependency>
<groupId>org.restcomm</groupId>
<artifactId>restcomm-connect-rvd</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>org.restcomm</groupId>
<artifactId>restcomm-connect.application</artifactId>
<type>war</type>
</dependency>

<dependency>
<groupId>org.restcomm</groupId>
<artifactId>restcomm-connect-management</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>org.mobicents.webrtc</groupId>
<artifactId>webrtc-ui</artifactId>
<type>war</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>extractSipServlets</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.mobicents.servlet.sip</groupId>
<artifactId>sip-servlets-as7</artifactId>
<version>${sipservletapi.version}</version>
<type>zip</type>
<classifier>assembly</classifier>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>extractMediaserver</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.mobicents.media</groupId>
<artifactId>media-server-standalone</artifactId>
<type>zip</type>
<classifier>assembly</classifier>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.mobicents.servlet.sip</groupId>
<artifactId>sip-servlets-as7</artifactId>
<version>${sipservletapi.version}</version>
<type>zip</type>
<classifier>assembly</classifier>
</artifactItem>
</artifactItems>
<descriptors>
<descriptor>src/main/resources/descriptor.xml</descriptor>
</descriptors>
<finalName>Restcomm-JBoss-AS7-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
<execution>
<id>extractMediaserver</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>standalone</id>
<dependencies>
<dependency>
<groupId>org.restcomm</groupId>
<artifactId>restcomm-connect.application</artifactId>
<type>war</type>
</dependency>

<dependency>
<groupId>org.restcomm</groupId>
<artifactId>restcomm-connect-management</artifactId>
<type>war</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>extractSipServlets</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.mobicents.servlet.sip</groupId>
<artifactId>sip-servlets-as7</artifactId>
<version>${sipservletapi.version}</version>
<type>zip</type>
<classifier>assembly</classifier>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.mobicents.media</groupId>
<artifactId>media-server-standalone</artifactId>
<type>zip</type>
<classifier>assembly</classifier>
</artifactItem>
</artifactItems>
<descriptors>
<descriptor>src/main/resources/descriptor.xml</descriptor>
</descriptors>
<finalName>Connect-JBoss-AS7-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<descriptors>
<descriptor>src/main/resources/descriptor.xml</descriptor>
</descriptors>
<finalName>Restcomm-JBoss-AS7-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</profile>
</profiles>
</project>

0 comments on commit b90b586

Please sign in to comment.