pom.xml 5.45 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
10
11
12
13
14
15
<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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>eu.melodic.event</groupId>
        <artifactId>event-management</artifactId>
16
		<version>3.1.0-SNAPSHOT</version>
17
18
19
20
21
22
23
24
25
26
27
	</parent>

	<artifactId>baguette-client</artifactId>
	<name>Upperware - EMS - Baguette Client</name>

	<dependencies>
		<dependency>
			<groupId>eu.melodic.event</groupId>
			<artifactId>broker-cep</artifactId>
			<version>${project.version}</version>
		</dependency>
28
29
30
31
32
33
34
		<dependency>
			<groupId>eu.melodic.event</groupId>
			<artifactId>broker-client</artifactId>
			<version>${project.version}</version>
		</dependency>

		<!-- Spring-Boot dependencies -->
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
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter</artifactId>
		</dependency>
		
		<!-- https://mvnrepository.com/artifact/org.apache.sshd/apache-sshd -->
		<dependency>
			<groupId>org.apache.sshd</groupId>
			<artifactId>apache-sshd</artifactId>
			<version>1.6.0</version>
			<type>pom</type>
			<exclusions>
				<exclusion> 
					<groupId>org.slf4j</groupId>
					<artifactId>slf4j-jdk14</artifactId>
				</exclusion>
			</exclusions> 
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<version>1.16.20</version>
			<scope>provided</scope>
		</dependency>
60
61
62
63
64
65
66

		<!-- https://mvnrepository.com/artifact/net.nicoulaj.maven.plugins/checksum-maven-plugin -->
		<dependency>
			<groupId>net.nicoulaj.maven.plugins</groupId>
			<artifactId>checksum-maven-plugin</artifactId>
			<version>1.8</version>
		</dependency>
67
	</dependencies>
68

69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<version>1.6.0</version>
				<executions>
					<execution>
						<goals>
							<goal>exec</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<mainClass>eu.melodic.event.baguette.client.BaguetteClient</mainClass>
					<executable>maven</executable>
				</configuration>
			</plugin>
87

88
89
90
91
92
			<!-- Assembly Maven plugin (https://maven.apache.org/plugin-developers/cookbook/generate-assembly.html) -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<configuration>
93
					<descriptor>src/main/assembly/baguette-client-installation-package.xml</descriptor>
94
95
96
97
98
99
100
101
102
103
104
					<finalName>baguette-client</finalName>
				</configuration>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121

			<!-- Checksum Maven plugin (http://checksum-maven-plugin.nicoulaj.net) -->
			<plugin>
				<groupId>net.nicoulaj.maven.plugins</groupId>
				<artifactId>checksum-maven-plugin</artifactId>
				<version>1.8</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>files</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<fileSets>
						<fileSet>
122
							<directory>${project.basedir}/target</directory>
123
							<!--<directory>target</directory>-->
124
125
							<includes>
								<include>*.zip</include>
126
127
128
								<include>*.tar</include>
								<include>*.tar.gz</include>
								<include>*.tgz</include>
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
							</includes>
							<excludes>
								<exclude>*.jar</exclude>
							</excludes>
						</fileSet>
					</fileSets>
					<algorithms>
						<algorithm>MD5</algorithm>
					</algorithms>
					<individualFiles>true</individualFiles>
					<failOnError>true</failOnError>
					<failIfNoFiles>false</failIfNoFiles>
				</configuration>
			</plugin>

144
			<!-- Copy-Rename Maven plugin (https://coderplus.github.io/copy-rename-maven-plugin/) -->
145
			<plugin>
146
147
148
149
150
151
152
153
154
155
156
				<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>
157
158
							<fileSets>
								<fileSet>
159
									<sourceFile>target/baguette-client-installation-package.tgz</sourceFile>
160
									<destinationFile>../config-files/resources/baguette-client.tgz</destinationFile>
161
162
								</fileSet>
								<fileSet>
163
									<sourceFile>target/baguette-client-installation-package.tgz.md5</sourceFile>
164
									<destinationFile>../config-files/resources/baguette-client.tgz.md5</destinationFile>
165
								</fileSet>
166
167
168
169
								<fileSet>
									<sourceFile>bin/install.sh</sourceFile>
                                    <destinationFile>../config-files/resources/install.sh</destinationFile>
								</fileSet>
170
							</fileSets>
171
							<ignoreFileNotFoundOnIncremental>true</ignoreFileNotFoundOnIncremental>
172
							<overWrite>true</overWrite>
173
174
175
						</configuration>
					</execution>
				</executions>
176
			</plugin>
177

178
179
180
181
		</plugins>
	</build>
	
</project>