Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
68 lines (64 loc) · 2.47 KB
/
Copy pathpom.xml
File metadata and controls
68 lines (64 loc) · 2.47 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Fichier de construction Maven : il décrit le projet Java, ses dépendances (bibliothèques
téléchargées automatiquement) et la façon de le lancer.
Commande utile, depuis ce dossier : ./mvnw compile exec:java (ou .\mvnw.cmd sous Windows).
-->
<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>
<groupId>todo</groupId>
<artifactId>todo-serveur</artifactId>
<version>1.0.0</version>
<name>Serveur TodoList</name>
<properties>
<!-- Le code utilise Java 21 : il faut un JDK 21 ou plus récent. -->
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- Pilote JDBC pour lire et écrire la base SQLite (un simple fichier). -->
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.53.4.0</version>
</dependency>
<!-- Jackson convertit les objets Java en JSON, et inversement. -->
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>3.2.3</version>
</dependency>
<!-- JUnit, uniquement pour les tests (./mvnw test). -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>6.1.3</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<!-- Autorise le pilote SQLite à charger sa bibliothèque native, sans avertissement.
Même réglage que .mvn/jvm.config, qui sert au lancement du serveur. -->
<argLine>--enable-native-access=ALL-UNNAMED</argLine>
</configuration>
</plugin>
<!-- « exec:java » lance la méthode main de la classe indiquée ici. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.6.4</version>
<configuration>
<mainClass>todo.TodoServer</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>