-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
185 lines (164 loc) · 6.87 KB
/
pom.xml
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
178
179
180
181
182
183
184
185
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<!-- Taking care to have all spring dependencies right. -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>de.bluewhale.iot</groupId>
<artifactId>AquaMetrics</artifactId>
<version>1.2-SNAPSHOT</version>
<packaging>jar</packaging>
<description>
Small behavioral REST Application to be run on a raspberryPI
Purpose: reading sensor data connected to the PI.
</description>
<inceptionYear>2020</inceptionYear>
<developers>
<!-- PLEASE ADD YOURSELF HERE for maven site docu
If you like to have an image link, you need to have a gravatar registered with the used email address here. -->
<developer>
<id>StS</id>
<name>Stefan Schubert</name>
<email>[email protected]</email>
<roles>
<role>Project-Maintainer</role>
<role>Product-Owner</role>
<role>Developer</role>
</roles>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>22</java.version>
<lombok.version>1.18.32</lombok.version>
<micrometer.prometheus.version>1.13.0</micrometer.prometheus.version>
<owasp.plugin.version>9.2.0</owasp.plugin.version>
</properties>
<dependencies>
<!-- Required for Rest -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Because of above exclusion: I prefer log4j2 instead of the default logback reference impl. -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<!-- Common Stuff -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>compile</scope>
</dependency>
<!-- Monitoring
The next ones are required for providing
http://host:port/actuator/prometheus
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Micrometer Prometheus registry -->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>${micrometer.prometheus.version}</version>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>aquametric-service</finalName>
<resources>
<!--
See https://docs.spring.io/spring-boot/docs/current/reference/html/howto-properties-and-configuration.html
about using maven project properties in application.properties.
-->
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>${java.version}</release>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- Build a fully executable jar to use it via /etc/init.d
see https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html
-->
<executable>true</executable>
</configuration>
</plugin>
<plugin>
<!-- Used for vulnerability checks
The examples below can be executed using mvn verify.
-->
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${owasp.plugin.version}</version>
<configuration>
<!-- You need to register yourself at https://nvd.nist.gov/
to get an API-KEY, which you can store in the
properties section of your local settings.xml -->
<nvdApiKey>${nvd.api.key}</nvdApiKey>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- This will check for newer version on dependencies which are
controlled by version property variables -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<!-- <goal>display-dependency-updates</goal>-->
<!-- <goal>display-plugin-updates</goal>-->
<goal>display-property-updates</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>