pom.xml 9.81 KB
Newer Older
ipatini's avatar
ipatini committed
1
2
3
4
5
6
7
8
<!--
  ~ Copyright (C) 2017-2019 Institute of Communication and Computer Systems (imu.iccs.gr)
  ~
  ~ This Source Code Form is subject to the terms of the Mozilla Public License, v2.0, unless
  ~ Esper library is used, in which case it is subject to the terms of General Public License v2.0.
  ~ If a copy of the MPL was not distributed with this file, you can obtain one at
  ~ https://www.mozilla.org/en-US/MPL/2.0/
  -->
9
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10
11
         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>
12
13
14
15

    <parent>
        <groupId>eu.melodic.event</groupId>
        <artifactId>event-management</artifactId>
16
        <version>3.1.0-SNAPSHOT</version>
17
18
19
20
21
    </parent>

    <artifactId>control-service</artifactId>
    <name>Upperware - EMS - Control Service</name>

22
23
    <properties>
        <!--DOCKER plugin properties-->
24
        <docker.imageName>ems-server</docker.imageName>
25
        <docker.esperJarToInclude>esper-${esper-version}.jar</docker.esperJarToInclude>
26
    </properties>
27

28
    <dependencies>
ipatini's avatar
ipatini committed
29
        <!-- Melodic dependencies -->
30
31
32
33
        <dependency>
            <groupId>eu.melodic</groupId>
            <artifactId>interfaces</artifactId>
        </dependency>
34
35
36
37
        <dependency>
            <groupId>org.ow2.paasage</groupId>
            <artifactId>jwt-commons</artifactId>
        </dependency>
38
39
40
        <dependency>
            <groupId>eu.melodic.security.authorization</groupId>
            <artifactId>authorization-service-client</artifactId>
41
            <version>${melodic.version}</version>
42
43
44
45
46
47
48
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-log4j12</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
ipatini's avatar
ipatini committed
49
50

        <!-- Dependencies on other EMS modules -->
51
52
53
54
55
        <dependency>
            <groupId>eu.melodic.event</groupId>
            <artifactId>baguette-server</artifactId>
            <version>${project.version}</version>
        </dependency>
56
57
58
59
60
        <dependency>
            <groupId>eu.melodic.event</groupId>
            <artifactId>baguette-client-install</artifactId>
            <version>${project.version}</version>
        </dependency>
61
62
63
64
65
66
67
68
69
70
        <dependency>
            <groupId>eu.melodic.event</groupId>
            <artifactId>broker-cep</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>eu.melodic.event</groupId>
            <artifactId>translator</artifactId>
            <version>${project.version}</version>
        </dependency>
71
72
73
74
75
        <dependency>
            <groupId>eu.melodic.event</groupId>
            <artifactId>util</artifactId>
            <version>${project.version}</version>
        </dependency>
76

77
78
79
80
81
82
83
84
85
86
87
88
89
        <!-- Spring-boot dependencies -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
90
91
92
93
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
94
95
96
97
98
        <dependency>
            <groupId>com.github.ulisesbocchio</groupId>
            <artifactId>jasypt-spring-boot-starter</artifactId>
            <version>2.1.0</version>
        </dependency>
99

100
101
102
103
104
105
        <!-- Lombok project -->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <scope>provided</scope>
        </dependency>
106

107
108
109
110
111
112
        <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>${gson.version}</version>
        </dependency>
113
114
115
116
117
118

        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>${commons-lang3.version}</version>
        </dependency>
119
120
121
122
123
124
125

        <!-- Hawtio console dependency (https://hawt.io/docs/get-started/) -->
        <dependency>
            <groupId>io.hawt</groupId>
            <artifactId>hawtio-springboot</artifactId>
            <version>2.4.0</version>
        </dependency>
126
127
128
129
130
131
132
133
134
135
136
137
138
139
    </dependencies>

    <build>
        <finalName>${project.artifactId}</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>
                            <groupId>eu.melodic.event</groupId>
                            <artifactId>baguette-client</artifactId>
                        </exclude>
140
141
142
143
                        <exclude>
                            <groupId>com.espertech</groupId>
                            <artifactId>esper</artifactId>
                        </exclude>
144
145
146
                    </excludes>
                </configuration>
            </plugin>
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-esper-jar</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.espertech</groupId>
                                    <artifactId>esper</artifactId>
                                    <version>${esper-version}</version>
                                    <type>jar</type>
                                    <outputDirectory>${project.build.directory}</outputDirectory>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
171
172
173
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
174
175
176
                <configuration>
                    <resources>
                        <resource>
177
                            <targetPath>/jars</targetPath>
178
179
180
181
                            <directory>${project.build.directory}</directory>
                            <include>${docker.jarToInclude}</include>
                            <include>${docker.esperJarToInclude}</include>
                        </resource>
182
183
                        <resource>
                            <targetPath>/bin</targetPath>
184
185
                            <directory>${project.basedir}/../bin/</directory>
                            <include>run.sh</include>
186
                        </resource>
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
                        <resource>
                            <targetPath>/config</targetPath>
                            <directory>${project.basedir}/../config-files</directory>
                        </resource>
                        <resource>
                            <targetPath>/resources</targetPath>
                            <directory>${project.basedir}/../config-files/resources</directory>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>buildnumber-maven-plugin</artifactId>
            </plugin>
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236

            <!-- Copy-Rename Maven plugin (https://coderplus.github.io/copy-rename-maven-plugin/) -->
            <plugin>
                <groupId>com.coderplus.maven.plugins</groupId>
                <artifactId>copy-rename-maven-plugin</artifactId>
                <version>1.0</version>
                <executions>
                    <execution>
                        <id>copy-zip</id>
                        <phase>package</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <fileSets>
                                <fileSet>
                                    <sourceFile>../baguette-client/target/baguette-client-vm.tgz</sourceFile>
                                    <destinationFile>target/baguette-client.tgz</destinationFile>
                                </fileSet>
                                <fileSet>
                                    <sourceFile>../baguette-client/target/baguette-client-vm.tgz.md5</sourceFile>
                                    <destinationFile>target/baguette-client.tgz.md5</destinationFile>
                                </fileSet>
                                <fileSet>
                                    <sourceFile>../baguette-client/bin/install.sh</sourceFile>
                                    <destinationFile>target/install.sh</destinationFile>
                                </fileSet>
                            </fileSets>
                            <ignoreFileNotFoundOnIncremental>true</ignoreFileNotFoundOnIncremental>
                            <overWrite>true</overWrite>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

237
238
239
        </plugins>
    </build>

240
</project>