pom.xml 5.86 KB
Newer Older
Riegel's avatar
Riegel committed
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
<?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="https://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>de.hft.stuttgart</groupId>
		<artifactId>CityDoctorParent</artifactId>
		<version>3.14.1</version>
		<relativePath></relativePath>
	</parent>
	<artifactId>CityDoctorHealerGUI</artifactId>
	<name>CityDoctorHealerGUI</name>
	<description>Healing GUI</description>
	<dependencies>
		<dependency>
			<groupId>de.hft.stuttgart</groupId>
			<artifactId>CityDoctorGUI</artifactId>
		</dependency>
		<dependency>
			<groupId>de.hft.stuttgart</groupId>
			<artifactId>CityDoctorHealer</artifactId>
		</dependency>
		<dependency>
			<groupId>de.hft.stuttgart</groupId>
			<artifactId>CityDoctorAutoPro</artifactId>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>3.2.0</version>
			</plugin>
		</plugins>
	</build>
	<profiles>
		<profile>
			<id>create-binaries</id>
			<properties>
				<win-jre>jre-${jre-version-short}-full</win-jre>
				<lin-jre>${win-jre}</lin-jre>
				<mac-jre>${win-jre}.jre</mac-jre>
			</properties>
			<build>
				<plugins>
					<plugin>
						<groupId>com.googlecode.maven-download-plugin</groupId>
						<artifactId>download-maven-plugin</artifactId>
						<version>1.7.0</version>
						<executions>
							<execution>
								<id>downloadWindowsJre</id>
								<phase>install</phase>
								<goals>
									<goal>wget</goal>
								</goals>
								<configuration>
									<uri>https://download.bell-sw.com/java/${jre-version}/bellsoft-jre${jre-version}-windows-amd64-full.zip</uri>
									<unpack>false</unpack>
									<outputDirectory>${project.build.directory}/jre/jre-win</outputDirectory>
									<outputFileName>win-runtime.zip</outputFileName>
								</configuration>
							</execution>
							<execution>
								<id>downloadLinuxJre</id>
								<phase>install</phase>
								<goals>
									<goal>wget</goal>
								</goals>
								<configuration>
									<uri>https://download.bell-sw.com/java/${jre-version}/bellsoft-jre${jre-version}-linux-amd64-full.tar.gz</uri>
									<unpack>false</unpack>
									<outputDirectory>${project.build.directory}/jre/jre-lin</outputDirectory>
									<outputFileName>lin-runtime.tar.gz</outputFileName>
								</configuration>
							</execution>
							<execution>
								<id>downloadMacJre</id>
								<phase>install</phase>
								<goals>
									<goal>wget</goal>
								</goals>
								<configuration>
									<uri>https://download.bell-sw.com/java/${jre-version}/bellsoft-jre${jre-version}-macos-amd64-full.zip</uri>
									<unpack>false</unpack>
									<outputDirectory>${project.build.directory}/jre/jre-mac</outputDirectory>
									<outputFileName>mac-runtime.zip</outputFileName>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-antrun-plugin</artifactId>
						<version>3.1.0</version>
						<executions>
							<execution>
								<id>unpack</id>
								<phase>install</phase>
								<configuration>
									<target name="unpack">
										<untar src="${project.build.directory}/jre/jre-lin/lin-runtime.tar.gz" dest="${project.build.directory}/jre/jre-lin/runtime" compression="gzip"></untar>
										<unzip src="${project.build.directory}/jre/jre-win/win-runtime.zip" dest="${project.build.directory}/jre/jre-win/runtime"></unzip>
										<unzip src="${project.build.directory}/jre/jre-mac/mac-runtime.zip" dest="${project.build.directory}/jre/jre-mac/runtime"></unzip>
									</target>
								</configuration>
								<goals>
									<goal>run</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-assembly-plugin</artifactId>
						<configuration>
							<appendAssemblyId>false</appendAssemblyId>
						</configuration>
						<executions>
							<execution>
								<id>create-archive-no-runtime</id>
								<phase>install</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<finalName>${project.artifactId}-${project.version}-no-runtime</finalName>
									<descriptors>
										<descriptor>${project.basedir}/src/assembly/no_runtime/assembly.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
							<execution>
								<id>create-archive-win</id>
								<phase>install</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<finalName>${project.artifactId}-${project.version}-win</finalName>
									<descriptors>
										<descriptor>${project.basedir}/src/assembly/win/assembly.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
							<execution>
								<id>create-archive-lin</id>
								<phase>install</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<finalName>${project.artifactId}-${project.version}-lin</finalName>
									<descriptors>
										<descriptor>${project.basedir}/src/assembly/lin/assembly.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
							<execution>
								<id>create-archive-mac</id>
								<phase>install</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<finalName>${project.artifactId}-${project.version}-mac</finalName>
									<descriptors>
										<descriptor>${project.basedir}/src/assembly/mac/assembly.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>