forked from Kurento/kurento-module-creator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
191 lines (179 loc) · 5.68 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<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>
<groupId>org.kurento</groupId>
<artifactId>kurento-module-creator</artifactId>
<version>6.15.1-SNAPSHOT</version>
<packaging>jar</packaging>
<!-- Project-level information -->
<name>Kurento Module Creator</name>
<description>
Tool that generates code for RPC between the Kurento Media Server
and remote libraries.
</description>
<url>https://www.kurento.org/docs/${project.version}</url>
<scm>
<url>https://github.com/Kurento/kurento-module-creator</url>
<connection>scm:git:git://github.com/Kurento/kurento-module-creator.git</connection>
<developerConnection>scm:git:[email protected]:Kurento/kurento-module-creator.git</developerConnection>
</scm>
<!-- Organization-level information -->
<developers>
<developer>
<id>kurento.org</id>
<name>Kurento Community</name>
<organization>Kurento</organization>
<organizationUrl>https://www.kurento.org</organizationUrl>
</developer>
</developers>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/Kurento/bugtracker/issues</url>
</issueManagement>
<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<mailingLists>
<mailingList>
<name>Kurento List</name>
<subscribe>http://groups.google.com/group/kurento/subscribe</subscribe>
<post>http://groups.google.com/group/kurento/post</post>
<archive>http://groups.google.com/group/kurento/about</archive>
</mailingList>
</mailingLists>
<organization>
<name>Kurento</name>
<url>https://www.kurento.org</url>
</organization>
<!-- Project configuration -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<buildDirectory>${project.basedir}/target</buildDirectory>
<!-- See explanation below -->
<extension.groupId>org.apache.maven.wagon</extension.groupId>
<extension.artifactId>wagon-file</extension.artifactId>
<extension.version>1.0</extension.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.14</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.14</version>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.23</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.3.1</version>
</dependency>
</dependencies>
<build>
<directory>${buildDirectory}</directory>
<resources>
<resource>
<directory>src/main/templates</directory>
</resource>
<resource>
<filtering>true</filtering>
<directory>src/main/cmake</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<finalName>kurento-module-creator</finalName>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifestEntries>
<Main-Class>org.kurento.modulecreator.Main</Main-Class>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>assemble-all</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>${extension.groupId}</groupId>
<artifactId>${extension.artifactId}</artifactId>
<version>${extension.version}</version>
</extension>
</extensions>
</build>
<!--
Maven has the limitation that it doesn't allow to define new <extensions>
as part of a <profile>, which means that we cannot easily inject the
'maven-s3-wagon' extension when the profile 'deploy' gets enabled.
There is a clever trick to overcome this limitation: have an harmless
extension added by default, and then swap it with the actually desired one,
by defining its Maven coordinates as properties in the profile.
Source: https://stackoverflow.com/questions/17639778/maven-3-profile-with-extensions/36253007#36253007
The default extension we are using here is 'org.apache.maven.wagon/wagon-file/1.0',
because it is already installed in any Ubuntu system where either 'maven' or
'maven-debian-helper' is installed, so it doesn't introduce additional
build dependencies (field *Build-Depends* in the 'debian/control' file).
-->
<profiles>
<profile>
<id>deploy</id>
<properties>
<extension.groupId>org.kuali.maven.wagons</extension.groupId>
<extension.artifactId>maven-s3-wagon</extension.artifactId>
<extension.version>1.2.1</extension.version>
</properties>
</profile>
</profiles>
</project>