-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
135 lines (127 loc) · 4.55 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
<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>uk.ac.rothamsted</groupId>
<artifactId>kgraph-usecases</artifactId>
<version>0.0.1-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.2</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
<java.version>${maven.compiler.source}</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.neo4j.driver</groupId>
<artifactId>neo4j-java-driver</artifactId>
<version>4.3.4</version>
</dependency>
<!-- TODO: Add the JUnit 4.x dependency here, use the 'test' <scope> (why?) -->
<!-- TODO: this is incomplete: Junit is better with the test scope here -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
</dependency>
<!-- This is needed due to a mix of JUnit 5 (used by Spring) and 4 (used
by us) Many thanks to: https://stackoverflow.com/a/67148219/529286 -->
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>5.8.0-M1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- You need to have this before the Neo4j server plug-in, since both
tests and then Neo4j stop happens in the same 'test' phase (see below). -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<!-- Starts and stops a test Neo4j server before/after our tests Please,
see details here: https://github.com/Rothamsted/neo4j-server-maven-plugin -->
<plugin>
<groupId>com.github.harti2006</groupId>
<artifactId>neo4j-server-maven-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
<configuration>
<version>4.3.2</version>
<password>test123</password>
</configuration>
<executions>
<execution>
<id>start-neo4j-server</id>
<!-- Defaults for start/stop are pre-integration-test and post-integration-test
and *IT.java tests are executed during the integration test phase. Here,
we make it simpler by starting/stopping around the regular test stage. This
is a rather advanced Maven topic, see here for details: https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html -->
<!-- phase>process-test-resources</phase -->
<phase>none</phase> <!-- TODO: doesn't work on Windows :-( -->
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-neo4j-server</id>
<!-- It's stopped after the tests (surefire), since the latter is
listed above before this -->
<!-- phase>test</phase -->
<phase>none</phase> <!-- TODO: doesn't work on Windows :-( -->
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<!-- This is where the neo4j plugin is searched -->
<id>knetminer-repo</id>
<name>Knetminer Unified Repository</name>
<url>https://knetminer.com/artifactory/repository/maven-public</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<!-- This is where the neo4j plugin is searched -->
<id>knetminer-repo</id>
<name>Knetminer Unified Repository</name>
<url>https://knetminer.com/artifactory/repository/maven-public</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</project>