summaryrefslogtreecommitdiffstats
path: root/pom.xml
blob: e5801d0858d72e99e6ebd33586e7fc971272c830 (plain) (blame)
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
<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>

	<groupId>de.bwlehrpool</groupId>
	<artifactId>bwlp-guac</artifactId>
	<version>1.4.0-SNAPSHOT</version>
	<packaging>jar</packaging>

	<name>bwlp-guac</name>
	<url>http://maven.apache.org</url>

	<scm>
		<connection>scm:git:git://git.openslx.org/bwlp/bwlp-guacamole-ext.git</connection>
	</scm>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
	</properties>

	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>buildnumber-maven-plugin</artifactId>
				<version>3.0.0</version>
				<executions>
					<execution>
						<phase>validate</phase>
						<goals>
							<goal>create</goal>
							<goal>create-timestamp</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<doCheck>false</doCheck>
					<doUpdate>false</doUpdate>
					<timestampPropertyName>revision.timestamp</timestampPropertyName>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.10.1</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<release>8</release>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>3.3.0</version>
				<configuration>
					<archive>
						<manifestEntries>
							<Build-Timestamp>${maven.build.timestamp}</Build-Timestamp>
							<Build-Revision>${buildNumber}</Build-Revision>
							<Build-Revision-Timestamp>${revision.timestamp}</Build-Revision-Timestamp>
						</manifestEntries>
					</archive>
				</configuration>
			</plugin>

			<!-- Pre-cache Angular templates with maven-angular-plugin -->
			<plugin>
				<groupId>com.keithbranton.mojo</groupId>
				<artifactId>angular-maven-plugin</artifactId>
				<version>0.3.4</version>
				<executions>
					<execution>
						<phase>generate-resources</phase>
						<goals>
							<goal>html2js</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<sourceDir>${basedir}/src/main/resources</sourceDir>
					<include>**/*.html</include>
					<target>${basedir}/src/main/resources/generated/templates-main/templates.js</target>
					<prefix>app/ext/bwlp</prefix>
				</configuration>
			</plugin>

			<!-- JS/CSS Minification Plugin -->
			<plugin>
				<groupId>com.samaxes.maven</groupId>
				<artifactId>minify-maven-plugin</artifactId>
				<version>1.7.6</version>
				<executions>
					<execution>
						<id>default-cli</id>
						<configuration>
							<charset>UTF-8</charset>

							<webappSourceDir>${basedir}/src/main/resources</webappSourceDir>
							<webappTargetDir>${project.build.directory}/classes</webappTargetDir>

							<cssSourceDir>/</cssSourceDir>
							<cssTargetDir>/</cssTargetDir>
							<cssFinalFile>bwlp.css</cssFinalFile>

							<cssSourceIncludes>
								<cssSourceInclude>**/*.css</cssSourceInclude>
							</cssSourceIncludes>

							<jsSourceDir>/</jsSourceDir>
							<jsTargetDir>/</jsTargetDir>
							<jsFinalFile>bwlp.js</jsFinalFile>

							<jsSourceIncludes>
								<jsSourceInclude>**/*.js</jsSourceInclude>
							</jsSourceIncludes>

							<!-- Do not minify and include tests -->
							<jsSourceExcludes>
								<jsSourceExclude>**/*.test.js</jsSourceExclude>
							</jsSourceExcludes>
							<jsEngine>CLOSURE</jsEngine>

							<!-- Disable warnings for JSDoc annotations -->
							<closureWarningLevels>
								<misplacedTypeAnnotation>OFF</misplacedTypeAnnotation>
								<nonStandardJsDocs>OFF</nonStandardJsDocs>
							</closureWarningLevels>

						</configuration>
						<goals>
							<goal>minify</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.13.2</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.guacamole</groupId>
			<artifactId>guacamole-ext</artifactId>
			<version>1.4.0</version>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>2.5</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>jakarta.ws.rs</groupId>
			<artifactId>jakarta.ws.rs-api</artifactId>
			<version>3.1.0</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>
</project>