Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
84 lines (75 loc) · 3.39 KB
/
Copy pathpom.xml
File metadata and controls
84 lines (75 loc) · 3.39 KB
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
<?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">
<!--
pom.xml = "Project Object Model": die Bauanleitung für Maven.
Hier steht, wie das Projekt heisst, welche Java-Version es braucht und
welche Bibliotheken (Dependencies) Maven herunterladen soll.
Nach einer Änderung in IntelliJ: Maven-Fenster -> "Reload All Maven Projects".
-->
<modelVersion>4.0.0</modelVersion>
<!--
Das "Parent"-POM von Spring Boot gibt passende, aufeinander abgestimmte
Versionen für alle Spring-Bibliotheken vor. Darum steht unten bei den
meisten Dependencies keine <version>.
-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>4.1.1</version>
<relativePath/>
</parent>
<!-- Eindeutige Bezeichnung dieses Projekts: groupId (wie ein Package) + artifactId (Name) + Version -->
<groupId>org.example</groupId>
<artifactId>HelloSpring</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>HelloSpring</name>
<description>Small Spring Boot / Thymeleaf Demo</description>
<!-- Benötigte Java-Version -->
<properties>
<java.version>25</java.version>
</properties>
<dependencies>
<!-- Web-Anwendung mit Spring MVC inkl. eingebautem Tomcat-Webserver (Port 8080) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webmvc</artifactId>
</dependency>
<!-- Werkzeuge für Tests (JUnit usw.). scope=test: nur beim Testen, nicht in der fertigen Anwendung -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webmvc-test</artifactId>
<scope>test</scope>
</dependency>
<!-- Thymeleaf: Template-Engine, die aus den HTML-Vorlagen in src/main/resources/templates echte Seiten macht -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<scope>compile</scope>
</dependency>
<!--
Tailwind CSS als "WebJar": Eine Web-Bibliothek (JavaScript/CSS), verpackt als
Java-Bibliothek. So wird sie vom eigenen Server ausgeliefert und es braucht
weder npm noch ein externes CDN. Erreichbar unter /webjars/...
-->
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>tailwindcss__browser</artifactId>
<version>4.3.3</version>
</dependency>
<!-- Hilft Spring, die Dateien in WebJars zu finden (Version muss nicht in der URL stehen) -->
<dependency>
<groupId>org.webjars</groupId>
<artifactId>webjars-locator-lite</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Ermöglicht "./mvnw spring-boot:run" und baut eine ausführbare JAR-Datei ("./mvnw package") -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>