-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml.BAKUP
More file actions
225 lines (202 loc) · 8.58 KB
/
Copy pathpom.xml.BAKUP
File metadata and controls
225 lines (202 loc) · 8.58 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
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?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>
<groupId>ch.hevs</groupId>
<artifactId>Spotify</artifactId>
<version>1.0-SNAPSHOT</version>
<!-- Paramètres de mon projet,
ce sont des configurations globales, afin de ne pas avoir à les donner à chaque plugin -->
<properties>
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.assembly.plugin.version>3.3.0</maven.assembly.plugin.version>
<maven.jar.plugin.version>3.2.0</maven.jar.plugin.version>
<maven.javadoc.plugin>3.3.0</maven.javadoc.plugin>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reportimg.outputEncoding>UTF-8</project.reportimg.outputEncoding>
</properties>
<!-- SNAPSHOT -->
<repositories>
<repository>
<id>project-repository</id>
<name>Main project repository</name>
<url>${project.baseUri}</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<!-- Plugins : Permettent de RUN le cycle de vie du projet maven. Chaque Plugin a un GOAL (BUT) lié à sa phase -->
<build>
<plugins>
<!-- COMPILATEUR -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<!-- ASSEMBLEUR -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven.assembly.plugin.version}</version>
<executions>
<!-- USERS BUILD -->
<execution>
<id>build-spotify_User</id>
<configuration>
<!-- Donner le NOM du PROJET -->
<finalName>${project.name}_USER__</finalName>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<!-- Le chemin d'accès à notre MAIN -->
<mainClass>ch.hevs.User.AppUser</mainClass>
</manifest>
</archive>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
<!-- SERVER BUILD -->
<execution>
<id>build-spotify_Scanner</id>
<configuration>
<!-- Donner le NOM du PROJET -->
<finalName>${project.name}_SCANNER__</finalName>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<!-- Le chemin d'accès à notre MAIN -->
<mainClass>ch.hevs.Scanner.AppScanner</mainClass>
</manifest>
</archive>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Permet de NE PAS générer le SNAPSHOT, qui lui est le JAR SANS les dependencies,
qui ne FONCTIONNERAIT donc PAS -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven.jar.plugin.version}</version>
<executions>
<execution>
<id>default-jar-without-dependencies</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<!-- JAVADOC -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin}</version>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<additionalOptions>
<additionalOption>-Xdoclint:none</additionalOption>
</additionalOptions>
<failOnError>false</failOnError>
</configuration>
</plugin>
<!-- UNIT TESTING -->
<!--<plugin>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>maven-surefire-common</artifactId>
<version>2.22.2</version>
</plugin>-->
<!-- AUCUNE IDEE CE QUE C'EST -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
</plugin>
<!-- DEPLOYMENT -->
<!--<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
</plugin>-->
<!-- Deploiement sur HEROKU -->
<!--<plugin>
<groupId>com.heroku.sdk</groupId>
<artifactId>heroku-deploy</artifactId>
<version>3.0.4</version>
<configuration>
<appName>VSFy</appName>
<processTypes>
<web>java $JAVA_OPTS -cp target/classes:target/dependency/* Main</web>
</processTypes>
</configuration>
</plugin>-->
</plugins>
</build>
<!-- Deploy at Repository -->
<!--<distributionManagement>
<repository>
<id>test-distribution</id>
<name>Distribution name</name>
<url>https://distrourl.com/</url>
</repository>
</distributionManagement> -->
<!-- Bibliothèques du projet -->
<dependencies>
<!-- JUNIT -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.7.2</version>
<scope>test</scope>
<!--
SCOPES :
Provided : Provided by JDK or RUNTIME, available at compile time but not at runtime
Runtime : Available at runtime, but not compile time
Test : Available while running and writing tests
System : Path to the JAR should be provided manually using <systemPath>
-->
</dependency>
<!-- <dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-media</artifactId>
<version>19-ea+5</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>19-ea+5</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>19-ea+5</version>
</dependency> -->
</dependencies>
</project>