1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5
+ <modelVersion >4.0.0</modelVersion >
6
+
7
+ <groupId >uk.gov.dstl.annot8</groupId >
8
+ <artifactId >annot8-corenlp</artifactId >
9
+ <version >1.0.0</version >
10
+
11
+ <name >Annot8 CoreNLP Components</name >
12
+ <description >Annot8 components using Stanford's CoreNLP library</description >
13
+
14
+ <licenses >
15
+ <license >
16
+ <name >GNU General Public License Version 3</name >
17
+ <url >http://www.gnu.org/licenses/gpl-3.0.txt</url >
18
+ </license >
19
+ </licenses >
20
+
21
+ <properties >
22
+ <maven .compiler.source>11</maven .compiler.source>
23
+ <maven .compiler.target>11</maven .compiler.target>
24
+
25
+ <annot8-api .version>1.0</annot8-api .version>
26
+ <annot8-implementation .version>1.0.2</annot8-implementation .version>
27
+ <corenlp .version>4.2.0</corenlp .version>
28
+
29
+ <junit .version>5.7.0</junit .version>
30
+
31
+ <maven-shade-plugin .version>3.2.4</maven-shade-plugin .version>
32
+ </properties >
33
+
34
+ <dependencies >
35
+ <dependency >
36
+ <groupId >io.annot8</groupId >
37
+ <artifactId >annot8-api</artifactId >
38
+ <version >${annot8-api.version} </version >
39
+ </dependency >
40
+ <dependency >
41
+ <groupId >io.annot8</groupId >
42
+ <artifactId >annot8-common-data</artifactId >
43
+ <version >${annot8-implementation.version} </version >
44
+ </dependency >
45
+ <dependency >
46
+ <groupId >io.annot8</groupId >
47
+ <artifactId >annot8-components-base-text</artifactId >
48
+ <version >1.1.0</version >
49
+ </dependency >
50
+ <dependency >
51
+ <groupId >io.annot8</groupId >
52
+ <artifactId >annot8-conventions</artifactId >
53
+ <version >1.1.0</version >
54
+ </dependency >
55
+
56
+ <dependency >
57
+ <groupId >edu.stanford.nlp</groupId >
58
+ <artifactId >stanford-corenlp</artifactId >
59
+ <version >${corenlp.version} </version >
60
+ </dependency >
61
+ <dependency >
62
+ <groupId >edu.stanford.nlp</groupId >
63
+ <artifactId >stanford-corenlp</artifactId >
64
+ <version >${corenlp.version} </version >
65
+ <classifier >models</classifier >
66
+ </dependency >
67
+
68
+ <!-- Testing -->
69
+ <dependency >
70
+ <groupId >org.junit.jupiter</groupId >
71
+ <artifactId >junit-jupiter-api</artifactId >
72
+ <version >${junit.version} </version >
73
+ <scope >test</scope >
74
+ </dependency >
75
+ <dependency >
76
+ <groupId >io.annot8</groupId >
77
+ <artifactId >annot8-test-impl</artifactId >
78
+ <version >${annot8-implementation.version} </version >
79
+ <scope >test</scope >
80
+ </dependency >
81
+ <dependency >
82
+ <groupId >org.slf4j</groupId >
83
+ <artifactId >slf4j-simple</artifactId >
84
+ <version >1.7.30</version >
85
+ <scope >test</scope >
86
+ </dependency >
87
+ </dependencies >
88
+
89
+ <profiles >
90
+ <profile >
91
+ <id >plugins</id >
92
+ <!-- This profile is used to build JAR which contain all dependencies -->
93
+ <build >
94
+ <plugins >
95
+ <plugin >
96
+ <groupId >org.apache.maven.plugins</groupId >
97
+ <artifactId >maven-shade-plugin</artifactId >
98
+ <version >${maven-shade-plugin.version} </version >
99
+ <executions >
100
+ <execution >
101
+ <phase >package</phase >
102
+ <goals >
103
+ <goal >shade</goal >
104
+ </goals >
105
+ <configuration >
106
+ <shadedClassifierName >plugin</shadedClassifierName >
107
+ <artifactSet >
108
+ <excludes >
109
+ <exclude >io.annot8:annot8-api</exclude >
110
+ <exclude >javax.servlet:javax.servlet-api</exclude > <!-- If not excluded, then it conflicts with Baleen 3 and prevents use -->
111
+ </excludes >
112
+ </artifactSet >
113
+ <shadedArtifactAttached >true</shadedArtifactAttached >
114
+ <filters >
115
+ <filter >
116
+ <!-- filter out signature files from signed dependencies, else repackaging fails with security ex -->
117
+ <artifact >*:*</artifact >
118
+ <excludes >
119
+ <exclude >META-INF/*.SF</exclude >
120
+ <exclude >META-INF/*.DSA</exclude >
121
+ <exclude >META-INF/*.RSA</exclude >
122
+ </excludes >
123
+ </filter >
124
+ </filters >
125
+ </configuration >
126
+ </execution >
127
+ </executions >
128
+ </plugin >
129
+ </plugins >
130
+ </build >
131
+ </profile >
132
+ </profiles >
133
+
134
+ </project >
0 commit comments