pom.xml 11 KB
Newer Older
thorsten.vitt's avatar
thorsten.vitt committed
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<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>info.textgrid.lab</groupId>
	<artifactId>parent</artifactId>
7
	<version>3.3.0-SNAPSHOT</version>
thorsten.vitt's avatar
thorsten.vitt committed
8
9
10
	<packaging>pom</packaging>

	<properties>
11
12
13
		<tycho-version>0.22.0</tycho-version>
		<tycho-extras-version>0.22.0</tycho-extras-version>
		<java-version>1.7</java-version>
thorsten.vitt's avatar
thorsten.vitt committed
14
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15
		<tycho.disableP2Mirrors>true</tycho.disableP2Mirrors>
16
		<lab.repository.eclipse>http://download.eclipse.org/releases/luna</lab.repository.eclipse>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
17
18
		<lab.repository.dependencies>https://ci.de.dariah.eu/p2/release%2F3.3/dependencies</lab.repository.dependencies>
		<lab.repository.root>https://ci.de.dariah.eu/p2/release%2F3.3</lab.repository.root>
thorsten.vitt's avatar
thorsten.vitt committed
19
20
21
22
23
		<lab.repository.core>${lab.repository.root}/core</lab.repository.core>
		<lab.repository.xmleditor>${lab.repository.root}/xmleditor</lab.repository.xmleditor>
		<lab.repository.help>${lab.repository.root}/help</lab.repository.help>
		<lab.repository.linkeditor>${lab.repository.root}/linkeditor</lab.repository.linkeditor>
		<lab.repository.dictionaries>${lab.repository.root}/dictionaries</lab.repository.dictionaries>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
24
		<lab.repository.bundled-jre>${lab.repository.root}/bundled-jre</lab.repository.bundled-jre>
25
26
27
	  </properties>

	  <repositories>
jbierma's avatar
jbierma committed
28
29
30
31
32
	  	<repository>
		      <id>eclipse4maintenance</id>
		      <layout>p2</layout>
		      <url>http://textgridlab.org/updates/luna/</url>
		</repository>
33
34
35
36
		<repository>
		      <id>eclipse</id>
		      <layout>p2</layout>
		      <url>${lab.repository.eclipse}</url>
jbierma's avatar
jbierma committed
37
		</repository> 	  	
38
39
40
41
		<repository>
		      <!-- TODO remove this as soon as the TP works -->
		      <id>babel</id>
		      <layout>p2</layout>
thorsten.vitt's avatar
thorsten.vitt committed
42
		      <url>http://archive.eclipse.org/technology/babel/update-site/R0.14.1/luna/</url>
43
44
45
46
47
48
49
		</repository>
		<repository>
		      <!-- TODO remove this as soon as the TP works -->
		      <id>orbit</id>
		      <layout>p2</layout>
		      <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/</url>
		</repository>
jbierma's avatar
jbierma committed
50
		
51
	  </repositories>
thorsten.vitt's avatar
thorsten.vitt committed
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

	<!-- <repositories> <repository> <id>swt-patch</id> <layout>p2</layout> 
		<url>http://textgridlab.org/updates/swt-patch</url> </repository> <repository> 
		<id>lab-core</id> <layout>p2</layout> <url>${lab.repository.core}</url> </repository> 
		<repository> <id>lab-xmleditor</id> <layout>p2</layout> <url>${lab.repository.xmleditor}</url> 
		</repository> <repository> <id>lab-help</id> <layout>p2</layout> <url>${lab.repository.help}</url> 
		</repository> <repository> <id>lab-linkeditor</id> <layout>p2</layout> <url>${lab.repository.linkeditor}</url> 
		</repository> <repository> <id>lab-dictionaries</id> <layout>p2</layout> 
		<url>${lab.repository.dictionaries}</url> </repository> <repository> <id>indigo</id> 
		<layout>p2</layout> <url>${lab.repository.eclipse}</url> </repository> <repository> 
		<id>babel</id> <layout>p2</layout> <url>http://download.eclipse.org/technology/babel/update-site/R0.11.1/indigo</url> 
		</repository> <repository> <id>textgridlab-dependencies</id> <layout>p2</layout> 
		<url>${lab.repository.dependencies}</url> </repository> <repository> <id>guava-osgi</id> 
		<layout>p2</layout> <url>${lab.repository.dependencies}</url> </repository> 
		<repository> <id>orbit</id> <layout>p2</layout> <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20120119162704/repository/</url> 
		</repository> </repositories> -->

thorsten.vitt's avatar
thorsten.vitt committed
69
70
71
72
73
74
75
76
77
78
79
80
81
82
      <!-- cf. https://github.com/jbosstools/jbosstools-maven-plugins/wiki -->
      <pluginRepositories>
	<pluginRepository>
	  <id>jboss-public-repository-group</id>
	  <name>JBoss Public Repository Group</name>
	  <url>http://repository.jboss.org/nexus/content/groups/public/</url>
	</pluginRepository>
	<pluginRepository>
	  <id>jboss-snapshots-repository</id>
	  <name>JBoss Snapshots Repository</name>
	  <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
	</pluginRepository>
      </pluginRepositories>

83
	<distributionManagement>
thorsten.vitt's avatar
thorsten.vitt committed
84
		<snapshotRepository>
85
86
			<id>dariah.nexus.snapshots</id>
			<url>https://ci.de.dariah.eu/nexus/content/repositories/snapshots</url>
thorsten.vitt's avatar
thorsten.vitt committed
87
		</snapshotRepository>
88
89
90
91
		<repository>
			<id>dariah.nexus.releases</id>
			<url>https://ci.de.dariah.eu/nexus/content/repositories/releases</url>
		</repository>
thorsten.vitt's avatar
thorsten.vitt committed
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
	</distributionManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-maven-plugin</artifactId>
				<version>${tycho-version}</version>
				<extensions>true</extensions>
			</plugin>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>target-platform-configuration</artifactId>
				<version>${tycho-version}</version>
				<configuration>
107
108
109
110
111
112
					<target>
						<artifact>
							<artifactId>target-platform</artifactId>
							<version>4.4.0-SNAPSHOT</version>
						</artifact>
					</target>
thorsten.vitt's avatar
thorsten.vitt committed
113
					<resolver>p2</resolver>
114
					<ignoreTychoRepositories>false</ignoreTychoRepositories>					
thorsten.vitt's avatar
thorsten.vitt committed
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
					<environments>
						<environment>
							<os>linux</os>
							<ws>gtk</ws>
							<arch>x86</arch>
						</environment>
						<environment>
							<os>linux</os>
							<ws>gtk</ws>
							<arch>x86_64</arch>
						</environment>
						<environment>
							<os>win32</os>
							<ws>win32</ws>
							<arch>x86</arch>
						</environment>
						<environment>
							<os>win32</os>
							<ws>win32</ws>
							<arch>x86_64</arch>
						</environment>
						<environment>
							<os>macosx</os>
							<ws>cocoa</ws>
							<arch>x86_64</arch>
						</environment>
					</environments>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-compiler-plugin</artifactId>
				<version>${tycho-version}</version>
				<configuration>
					<source>${java-version}</source>
					<target>${java-version}</target>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-source-plugin</artifactId>
				<version>${tycho-version}</version>
				<executions>
					<execution>
						<id>plugin-source</id>
162
						<phase>package</phase>
thorsten.vitt's avatar
thorsten.vitt committed
163
164
165
166
167
168
169
170
171
172
173
174
175
						<goals>
							<goal>plugin-source</goal>
						</goals>
					</execution>
				</executions>
			</plugin>


			<plugin>
			      <groupId>org.eclipse.tycho.extras</groupId>
			      <artifactId>tycho-source-feature-plugin</artifactId>
			      <version>${tycho-extras-version}</version>
			      <configuration>
thorsten.vitt's avatar
thorsten.vitt committed
176
				    <labelSuffix> SDK</labelSuffix>
thorsten.vitt's avatar
thorsten.vitt committed
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
			      </configuration>
			      <executions>
				    <execution>
					  <id>source-feature</id>
					  <phase>package</phase>
					  <goals>
						<goal>source-feature</goal>
					  </goals>
				    </execution>
			      </executions>
			</plugin>
			<plugin>
			      <groupId>org.eclipse.tycho</groupId>
			      <artifactId>tycho-p2-plugin</artifactId>
			      <executions>
				    <execution>
					  <id>attach-p2-metadata</id>
					  <phase>package</phase>
					  <goals>
						<goal>p2-metadata</goal>
					  </goals>
				    </execution>
			      </executions>
			</plugin>

		</plugins>


		<pluginManagement>
206
207
208
209
210
211
212
213
214
215
216
217
		      <plugins>
      

		      <plugin>
			    <groupId>org.eclipse.tycho</groupId>
			    <artifactId>tycho-p2-repository-plugin</artifactId>
			    <version>${tycho-version}</version>
			    <configuration>
				  <includeAllDependencies>true</includeAllDependencies>
				  <compress>false</compress>
			    </configuration>
		      </plugin>
thorsten.vitt's avatar
thorsten.vitt committed
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-packaging-plugin</artifactId>
					<version>${tycho-version}</version>
					<dependencies>
						<dependency>
							<groupId>org.eclipse.tycho.extras</groupId>
							<artifactId>tycho-buildtimestamp-jgit</artifactId>
							<version>${tycho-extras-version}</version>
						</dependency>
					</dependencies>
					<configuration>
						<timestampProvider>jgit</timestampProvider>
						<jgit.ignore>
							pom.xml
						</jgit.ignore>
						<jgit.dirtyWorkingTree>warning</jgit.dirtyWorkingTree>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-p2-plugin</artifactId>
					<version>${tycho-version}</version>
					<configuration>
						<baselineRepositories>
							<repository>
								<url>http://textgridlab.org/updates/stable</url>
								<url>http://textgridlab.org/updates/beta</url>
246
								<!--url>http://textgridlab.org/updates/nightly</url-->
thorsten.vitt's avatar
thorsten.vitt committed
247
248
							</repository>
						</baselineRepositories>
249
						<baselineReplace>common</baselineReplace>
thorsten.vitt's avatar
thorsten.vitt committed
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
					</configuration>
				</plugin>
			</plugins>

		</pluginManagement>

	</build>

	<profiles>

		<profile>
			<id>sign</id>
			<activation>
				<property>
					<name>jarsigner.alias</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-jarsigner-plugin</artifactId>
						<version>1.2</version>
						<executions>
							<execution>
								<id>sign</id>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		
		<profile>
			      <id>javadoc</id>
			      <activation>
				        <activeByDefault>false</activeByDefault>
			      </activation>
			      <build>
				        <plugins>
					          <plugin>
						            <groupId>org.apache.maven.plugins</groupId>
						            <artifactId>maven-javadoc-plugin</artifactId>
						            <version>2.8.1</version>

						            <configuration>
							              <additionnalDependencies>
								<!-- Without this, javadoc would fail with the test plugins -->
								<additionnalDependency>
									                  <groupId>junit</groupId>
									                  <artifactId>junit</artifactId>
									                  <version>4.8</version>
								                </additionnalDependency>
							              </additionnalDependencies>
							
							              <links>
								                <link>http://help.eclipse.org/indigo/topic/org.eclipse.platform.doc.isv/reference/api</link>
							              </links>
							
							              <packagesheader>TextGridLab Core</packagesheader>					
							
							              <!-- There are still some errors that I don't understand yet but that don't really break javadoc generation -->
							<failOnError>false</failOnError>
						            </configuration>

						            <executions>
							              <execution>
								                <id>aggregate</id>
								                <goals>
									                  <goal>aggregate</goal>
								                </goals>
								                <phase>generate-resources</phase>
							              </execution>
						            </executions>
					          </plugin>
				        </plugins>
			      </build>
		    </profile>
		
	</profiles>
	<name>TextGrid Parent POM</name>
	<url>http://www.textgrid.de/</url>
	<inceptionYear>2006</inceptionYear>
</project>