-
Notifications
You must be signed in to change notification settings - Fork 21
/
pom.xml
109 lines (99 loc) · 4.72 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<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">
<parent>
<groupId>org.mobicents</groupId>
<artifactId>restcomm-parent</artifactId>
<version>2.27.32</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.restcomm.webrtcomm</groupId>
<artifactId>webrtcomm</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<resources>
<resource>
<directory>src/WebRTComm</directory>
<includes>
<include>**</include>
</includes>
<filtering>true</filtering>
<!-- this special dir allows JEE inclusion-->
<targetPath>META-INF/resources/webrtcomm</targetPath>
</resource>
</resources>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<nosuffix>true</nosuffix>
<force>true</force>
<includes>
<include>${project.build.directory}/classes/META-INF/resources/webrtcomm/*.js</include>
</includes>
<aggregations>
<aggregation>
<removeIncluded>true</removeIncluded>
<insertNewLine>true</insertNewLine>
<output>${project.build.directory}/classes/META-INF/resources/webrtcomm/WebRTComm.min.js</output>
<!-- files to include, path relative to output's directory or absolute path-->
<!--inputDir>base directory for non absolute includes, default to parent dir of output</inputDir-->
<inputDir>${project.build.directory}/classes/META-INF/resources/webrtcomm/</inputDir>
<includes>
<include>*.js</include>
</includes>
</aggregation>
</aggregations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<phase>deploy</phase>
<configuration>
<nodeVersion>v4.6.0</nodeVersion>
<!-- optional: with node version greater than 4.0.0 will use npm provided by node distribution -->
<npmVersion>2.15.9</npmVersion>
</configuration>
</execution>
<execution>
<id>publishToNPM</id>
<goals>
<goal>npm</goal>
</goals>
<phase>deploy</phase>
<configuration>
<arguments>publish ${project.build.directory}/classes/META-INF/resources/webrtcomm --access public </arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<name>oss.sonatype.org</name>
<id>oss.sonatype.org</id>
<url>http://oss.sonatype.org/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
</project>