-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpom.xml
191 lines (179 loc) · 7.33 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
<?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>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.3.RELEASE</version>
</parent>
<groupId>com.alibaba.intl.imagesearch</groupId>
<artifactId>web-image-search-engine</artifactId>
<version>1.2.0-SNAPSHOT</version>
<name>web-image-search-engine</name>
<properties>
<apache-commons-io.version>2.6</apache-commons-io.version>
<apache-lang.version>3.8.1</apache-lang.version>
<mockito.version>1.10.19</mockito.version>
<hibernate-validator.version>6.0.15.Final</hibernate-validator.version>
<jaxb-api.version>2.4.0-b180830.0359</jaxb-api.version>
<rpm-maven-plugin.version>2.2.0</rpm-maven-plugin.version>
<httpclient.version>4.5.7</httpclient.version>
<gson.version>2.8.5</gson.version>
<aliyun-core.version>4.3.5</aliyun-core.version>
<aliyun-imagesearch.version>1.0.4</aliyun-imagesearch.version>
</properties>
<dependencies>
<!-- Spring Boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- Persistence -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate-validator.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-java8</artifactId>
</dependency>
<!-- Alibaba Cloud -->
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>${aliyun-core.version}</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-imagesearch</artifactId>
<version>${aliyun-imagesearch.version}</version>
</dependency>
<!-- JAXB -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${jaxb-api.version}</version>
</dependency>
<!-- Miscellaneous -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${apache-commons-io.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${apache-lang.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<!-- Testing -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>web-image-search-engine</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>${rpm-maven-plugin.version}</version>
<configuration>
<group>Applications/Internet</group>
<packager>SWWDC</packager>
<needarch>noarch</needarch>
<targetOS>linux</targetOS>
<mappings>
<mapping>
<directory>/opt/web-image-search-engine</directory>
<sources>
<source>
<location>target/web-image-search-engine.jar</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/etc/systemd/system</directory>
<directoryIncluded>false</directoryIncluded>
<sources>
<source>
<location>rpm/etc/systemd/system/web-image-search-engine.service</location>
</source>
</sources>
</mapping>
</mappings>
<requires>
<require>java-1.8.0-openjdk</require>
</requires>
<requiresPre>
<require>/usr/sbin/useradd</require>
<require>/usr/bin/getent</require>
<require>/usr/bin/chown</require>
</requiresPre>
<requiresPreun>
<require>/usr/sbin/userdel</require>
</requiresPreun>
<postinstallScriptlet>
<scriptFile>rpm/postinstall.sh</scriptFile>
</postinstallScriptlet>
<postremoveScriptlet>
<scriptFile>rpm/postun.sh</scriptFile>
</postremoveScriptlet>
</configuration>
</plugin>
</plugins>
</build>
</project>