pom.xml 5.08 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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 https://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.3.0.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>de.helmholtz.marketplace</groupId>
	<artifactId>helmholtz-marketplace-server</artifactId>
	<version>0.0.1-SNAPSHOT</version>
14
	<name>Helmholtz Marketplace Server</name>
15
16
17
18
	<description>Helmholtz marketplace web app server</description>

	<properties>
		<java.version>11</java.version>
19
20
		<dependency-check-maven.version>5.3.2</dependency-check-maven.version>
		<dependency-check-maven.cvss-threshold>8</dependency-check-maven.cvss-threshold>
21
		<version.helmholtz-marketplace-webapp>0.0.1</version.helmholtz-marketplace-webapp>
22
23
		<!--suppress UnresolvedMavenProperty -->
		<sonar.token>${env.SONAR_AUTH_TOKEN}</sonar.token>
24
25
	</properties>

26
27
28
29
30
31
32
	<repositories>
		<repository>
			<id>de.helmholtz.marketplace</id>
			<url>https://download.dcache.org/nexus/content/groups/public</url>
		</repository>
	</repositories>

33
34
35
36
37
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-oauth2-client</artifactId>
		</dependency>
38

39
40
41
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
femiadeyemi's avatar
femiadeyemi committed
42
43
44
45
46
47
48
49
50
51
52
53
			<exclusions>
				<exclusion>
					<groupId>org.springframework.boot</groupId>
					<artifactId>spring-boot-starter-tomcat</artifactId>
				</exclusion>
			</exclusions>

		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-jetty</artifactId>
54
55
56
57
58
59
60
61
62
63
64
65
66
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>org.junit.vintage</groupId>
					<artifactId>junit-vintage-engine</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
67
68
69
70
71
72

		<dependency>
			<groupId>de.helmholtz.marketplace</groupId>
			<artifactId>helmholtz-marketplace-webapp</artifactId>
			<version>${version.helmholtz-marketplace-webapp}</version>
		</dependency>
73
74
75
76
77
78
79
80
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
			<plugin>
				<groupId>org.owasp</groupId>
				<artifactId>dependency-check-maven</artifactId>
				<version>${dependency-check-maven.version}</version>
				<configuration>
					<failBuildOnCVSS>${dependency-check-maven.cvss-threshold}</failBuildOnCVSS>
					<suppressionFile>dependency-check-suppressions.xml</suppressionFile>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>check</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>3.3.0</version>
				<configuration>
					<descriptors>
						src/main/resources/distribution/distribution.xml
					</descriptors>
					<finalName>hm-server</finalName>
				</configuration>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
116
		</plugins>
117
118
119
120
121
122
123
124
125
126
127
128
129
130
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.sonarsource.scanner.maven</groupId>
					<artifactId>sonar-maven-plugin</artifactId>
					<version>3.7.0.1746</version>
				</plugin>
				<plugin>
					<groupId>org.jacoco</groupId>
					<artifactId>jacoco-maven-plugin</artifactId>
					<version>0.8.5</version>
				</plugin>
			</plugins>
		</pluginManagement>
131
	</build>
132
133
	<profiles>
		<profile>
134
			<id>sonar</id>
135
136
137
138
139
140
141
			<properties>
				<sonar.login>${sonar.token}</sonar.login>
				<sonar.host.url>https://sonar.desy.de</sonar.host.url>
				<sonar.projectKey>${project.groupId}:${project.artifactId}</sonar.projectKey>
				<sonar.projectName>${project.name}</sonar.projectName>
				<sonar.sources>src/main</sonar.sources>
				<sonar.tests>src/test</sonar.tests>
Carsten Heidmann's avatar
Carsten Heidmann committed
142
				<sonar.working.directory>${project.build.directory}/.scannerwork</sonar.working.directory>
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
				<sonar.projectVersion>${project.version}</sonar.projectVersion>
				<sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
				<sonar.qualitygate.wait>true</sonar.qualitygate.wait>
				<sonar.qualitygate.timeout>30</sonar.qualitygate.timeout>
			</properties>
			<build>
				<plugins>
					<plugin>
						<groupId>org.jacoco</groupId>
						<artifactId>jacoco-maven-plugin</artifactId>
						<executions>
							<execution>
								<id>prepare-agent</id>
								<goals>
									<goal>prepare-agent</goal>
								</goals>
							</execution>
							<execution>
								<id>report</id>
								<goals>
									<goal>report</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
172
</project>