-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
59 lines (53 loc) · 2.08 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
<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>uk.ac.nactem.argo</groupId>
<artifactId>argo-starter-components</artifactId>
<version>0.5.1</version>
</parent>
<artifactId>example-argo-reader</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<!-- !!! VERY IMPORTANT !!! -->
<!-- Redeclare all type system dependencies in the pear <profile>, but
with their <scope> set to provided (see below for more details). -->
<dependency>
<groupId>uk.ac.nactem.uima</groupId>
<artifactId>UCompareTypeSystem</artifactId>
<version>1.2.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
<profiles>
<profile>
<id>pear</id>
<properties>
<!-- This is the class of the component from which the PEAR file will
be generated -->
<uima.component.class>uk.ac.nactem.argo.example.ExampleReader</uima.component.class>
</properties>
<dependencies>
<!-- !!! VERY IMPORTANT !!! -->
<!-- All type system dependencies must be redeclared here but with their
<scope> value set to provided. This is to prevent the type systems being
included inside the generated PEAR file; type systems should be independently
installed into an Argo instance. If a type system gets included inside a
PEAR file then workflow executions will normally fail, complaining of missing
classes associated with UIMA types. -->
<!-- Eventually Argo should support installation of components and type
systems from Maven, which will automatically deal with type system dependencies
and avoid the need for this profile. -->
<dependency>
<groupId>uk.ac.nactem.uima</groupId>
<artifactId>UCompareTypeSystem</artifactId>
<version>1.2.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project>