-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
126 lines (126 loc) · 6.28 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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" 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>
<!-- TODO: Set your own groupID, artifactID, and version -->
<groupId>no.ntnu.ie.iir.bidata.idata2001.gruppe10</groupId>
<artifactId>pathsdemo</artifactId>
<version>1.0-SNAPSHOT</version>
<!-- Use porperties for versions. Properties are like variables -->
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--
Versions of plugins
-->
<maven.compiler.plugin.version>3.10.1</maven.compiler.plugin.version>
<javafx.maven.plugin.version>0.0.8</javafx.maven.plugin.version>
<maven.surefire.plugin.version>3.0.0-M7</maven.surefire.plugin.version>
<maven.jar.plugin.version>3.3.0</maven.jar.plugin.version>
<maven.javadoc.plugin.version>3.4.1</maven.javadoc.plugin.version>
<!--
Versions of dependencies
-->
<junit.jupiter.version>5.9.2</junit.jupiter.version>
<javafx.version>19</javafx.version>
<!--
Details about your application, like where is the main()-method
-->
<application.main>no.ntnu.ie.iir.bidata.idata2001.gruppe10.Main</application.main>
<application.filename>PathsDemo</application.filename>
</properties>
<build>
<plugins>
<!-- Add a newer version of the Maven compiler to be compliant with modules -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
</plugin>
<!-- JavaFX Maven plugin, to enabeling javafx:run -->
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${javafx.maven.plugin.version}</version>
<configuration>
<mainClass>${application.main}</mainClass>
</configuration>
</plugin>
<!-- Add a newer version of the JUnit test interface surefire, to be compliant with JUnit5 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
</plugin>
<!--
To enable the option of double-clicking the JAR-file to make it run,
the packaging stage of Maven needs to know which of the classes
holds the main()-method. This can be set in the maven-jar-plugin.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven.jar.plugin.version}</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<!-- add the full name to your class containing the main()-method -->
<mainClass>${application.main}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<!--
Plugin that generates JavaDoc
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<!-- configure how to execute this plugin -->
<executions>
<execution>
<!--
connect the execution of the plugin to the Maven lifecycle phase "package"
so that JavaDoc is generated every time you run "mvn package"
-->
<phase>package</phase>
<id>attach-javadocs</id>
<!--
set which of the goals in the plugin to execute. The JavaDoc plugin
has a total of 16 goals to choose from. See: https://maven.apache.org/plugins/maven-javadoc-plugin/
The most common once beeing either "javadoc" or "jar"
-->
<goals>
<goal>javadoc</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- generate javadoc only for public classes and members -->
<show>public</show>
<!-- Omits the HELP link in the navigation bars at the top and bottom of each page of output. -->
<nohelp>true</nohelp>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
</dependency>
<!--
And of course we need to add support for JUnit5-testing ;-)
REMEMBER to add the scope-part!
-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>