forked from codelibs/fess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
166 lines (157 loc) · 7.35 KB
/
plugin.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="plugin" basedir=".">
<property name="plugins.dir" value="${basedir}/plugins" />
<property name="target.dir" value="${basedir}/target/plugins" />
<property name="site.dir" value="${basedir}/src/main/webapp/WEB-INF/site" />
<property name="kopf.branch" value="fess-6.0" />
<!-- Maven Repository -->
<property name="maven.snapshot.repo.url" value="https://oss.sonatype.org/content/repositories/snapshots" />
<property name="maven.release.repo.url" value="http://central.maven.org/maven2" />
<target name="install.plugins">
<mkdir dir="${target.dir}" />
<delete dir="${plugins.dir}" />
<mkdir dir="${plugins.dir}" />
<!-- analysis-fess -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs" />
<param name="plugin.name.prefix" value="elasticsearch-" />
<param name="plugin.name" value="analysis-fess" />
<param name="plugin.version" value="6.1.0" />
<param name="plugin.zip.version" value="6.1.0" />
</antcall>
<!-- analysis-ja -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs" />
<param name="plugin.name.prefix" value="elasticsearch-" />
<param name="plugin.name" value="analysis-ja" />
<param name="plugin.version" value="6.1.0" />
<param name="plugin.zip.version" value="6.1.0" />
</antcall>
<!-- analysis-synonym -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs" />
<param name="plugin.name.prefix" value="elasticsearch-" />
<param name="plugin.name" value="analysis-synonym" />
<param name="plugin.version" value="6.1.0" />
<param name="plugin.zip.version" value="6.1.0" />
</antcall>
<!-- configsync -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs" />
<param name="plugin.name.prefix" value="elasticsearch-" />
<param name="plugin.name" value="configsync" />
<param name="plugin.version" value="6.1.1" />
<param name="plugin.zip.version" value="6.1.1" />
</antcall>
<!-- dataformat -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs" />
<param name="plugin.name.prefix" value="elasticsearch-" />
<param name="plugin.name" value="dataformat" />
<param name="plugin.version" value="6.1.0" />
<param name="plugin.zip.version" value="6.1.0" />
</antcall>
<!-- langfield -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs" />
<param name="plugin.name.prefix" value="elasticsearch-" />
<param name="plugin.name" value="langfield" />
<param name="plugin.version" value="6.1.0" />
<param name="plugin.zip.version" value="6.1.0" />
</antcall>
<!-- minhash -->
<antcall target="install.plugin">
<param name="repo.url" value="${maven.release.repo.url}" />
<param name="plugin.groupId" value="org/codelibs" />
<param name="plugin.name.prefix" value="elasticsearch-" />
<param name="plugin.name" value="minhash" />
<param name="plugin.version" value="6.1.0" />
<param name="plugin.zip.version" value="6.1.0" />
</antcall>
<!-- kopf -->
<get dest="${target.dir}/kopf.zip">
<url url="https://github.com/codelibs/elasticsearch-kopf/archive/${kopf.branch}.zip" />
</get>
<delete dir="${site.dir}/kopf" />
<unzip dest="${site.dir}/kopf" src="${target.dir}/kopf.zip">
<patternset>
<include name="elasticsearch-kopf-${kopf.branch}/_site/**" />
</patternset>
<cutdirsmapper dirs="2" />
</unzip>
<antcall target="remove.jars" />
</target>
<target name="install.plugin">
<get dest="${target.dir}">
<url url="${repo.url}/${plugin.groupId}/${plugin.name.prefix}${plugin.name}/${plugin.version}/${plugin.name.prefix}${plugin.name}-${plugin.zip.version}.zip" />
</get>
<unzip dest="${plugins.dir}/${plugin.name}" src="${target.dir}/${plugin.name.prefix}${plugin.name}-${plugin.zip.version}.zip">
<patternset>
<include name="elasticsearch/**" />
</patternset>
<cutdirsmapper dirs="1" />
</unzip>
</target>
<target name="remove.jars" if="with.fess">
<delete>
<fileset dir="${plugins.dir}">
<include name="configsync/commons-codec-*" />
<include name="dataformat/commons-codec-*" />
<include name="dataformat/commons-collections4-*" />
<include name="dataformat/curvesapi-*" />
<include name="dataformat/orangesignal-csv-*" />
<include name="dataformat/poi-*" />
<include name="dataformat/stax-api-*" />
<include name="dataformat/xmlbeans-*" />
<include name="langfield/jackson-*" />
<include name="minhash/guava-*" />
</fileset>
</delete>
</target>
<!--
# Korean
# Too old...
PLUGIN_VERSION=5.1.1.1
rm -rf plugins/analysis-seunjeon
wget -O target/analysis-seunjeon.zip http://central.maven.org/maven2/org/bitbucket/eunjeon/elasticsearch-analysis-seunjeon/${PLUGIN_VERSION}/elasticsearch-analysis-seunjeon-${PLUGIN_VERSION}.zip
unzip -d plugins/analysis-seunjeon target/analysis-seunjeon.zip
mv plugins/analysis-seunjeon/elasticsearch/* plugins/analysis-seunjeon/
# Japanese
# https://github.com/codelibs/elasticsearch-analysis-kuromoji-neologd
PLUGIN_VERSION=6.1.0-SNAPSHOT
rm -rf plugins/analysis-kuromoji-neologd
wget -O target/analysis-kuromoji-neologd.zip http://central.maven.org/maven2/org/codelibs/elasticsearch-analysis-kuromoji-neologd/${PLUGIN_VERSION}/elasticsearch-analysis-kuromoji-neologd-${PLUGIN_VERSION}.zip
unzip -d plugins/analysis-kuromoji-neologd target/analysis-kuromoji-neologd.zip
mv plugins/analysis-kuromoji-neologd/elasticsearch/* plugins/analysis-kuromoji-neologd/
# Vietnamese
# https://github.com/duydo/elasticsearch-analysis-vietnamese
PLUGIN_VERSION=6.1.0-SNAPSHOT
rm -rf plugins/analysis-vietnamese
wget -O target/analysis-vietnamese.zip https://github.com/duydo/elasticsearch-analysis-vietnamese/releases/download/v${PLUGIN_VERSION}/elasticsearch-analysis-vietnamese-${PLUGIN_VERSION}.zip
unzip -d plugins/analysis-vietnamese target/analysis-vietnamese.zip
mv plugins/analysis-vietnamese/elasticsearch/* plugins/analysis-vietnamese/
rm plugins/analysis-vietnamese/opennlp-tools-*.jar
rm plugins/analysis-vietnamese/commons-io-*.jar
rm plugins/analysis-vietnamese/opennlp-maxent-*.jar
rm plugins/analysis-vietnamese/jwnl-*.jar
# Simplified Chinese
PLUGIN_VERSION=6.1.0-SNAPSHOT
rm -rf plugins/analysis-smartcn
wget -O target/analysis-smartcn.zip https://artifacts.elastic.co/downloads/elasticsearch-plugins/analysis-smartcn/analysis-smartcn-${PLUGIN_VERSION}.zip
unzip -d plugins/analysis-smartcn target/analysis-smartcn.zip
mv plugins/analysis-smartcn/elasticsearch/* plugins/analysis-smartcn/
# Traditional Chinese
# https://github.com/medcl/elasticsearch-analysis-stconvert
PLUGIN_VERSION=6.1.0-SNAPSHOT
rm -rf plugins/analysis-stconvert
wget -O target/analysis-stconvert.zip https://github.com/medcl/elasticsearch-analysis-stconvert/releases/download/v${PLUGIN_VERSION}/elasticsearch-analysis-stconvert-${PLUGIN_VERSION}.zip
unzip -d plugins/analysis-stconvert target/analysis-stconvert.zip
mv plugins/analysis-stconvert/elasticsearch/* plugins/analysis-stconvert/
-->
</project>