Skip to content

Commit 5a23b33

Browse files
committed
chore: update pom.xml to streamline dependencies and improve project structure
1 parent 3126a0f commit 5a23b33

File tree

1 file changed

+55
-196
lines changed

1 file changed

+55
-196
lines changed

pom.xml

Lines changed: 55 additions & 196 deletions
Original file line numberDiff line numberDiff line change
@@ -1,234 +1,93 @@
1-
<!--
2-
~ Copyright (c) 2022 Contributors to the Eclipse Foundation
3-
~ All rights reserved. This program and the accompanying materials
4-
~ are made available under the terms of the Eclipse Public License v1.0
5-
~ and Apache License v2.0 which accompanies this distribution.
6-
~ The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
7-
~ and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
8-
~
9-
~ You may elect to redistribute this code under either of these licenses.
10-
-->
11-
12-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13-
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://maven.apache.org/POM/4.0.0"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
145
<modelVersion>4.0.0</modelVersion>
6+
157
<groupId>org.soujava.demos.mongodb</groupId>
168
<artifactId>behavior-driven-development</artifactId>
17-
<version>1.0.0</version>
18-
<name>JNoSQL Demo using Java SE MongoDB exploring Behavior Driven Test</name>
9+
<version>1.0.0-SNAPSHOT</version>
10+
<packaging>jar</packaging>
1911

2012
<properties>
2113
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22-
<jnosql.version>1.1.10</jnosql.version>
23-
<maven.compiler.source>21</maven.compiler.source>
24-
<maven.compiler.target>21</maven.compiler.target>
25-
<maven.compile.version>3.5.1</maven.compile.version>
26-
<maven-surefire-plugin.version>3.5.4</maven-surefire-plugin.version>
27-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
28-
<jakarta.json.bind.version>3.0.0</jakarta.json.bind.version>
29-
<jakarta.json.version>2.1.1</jakarta.json.version>
30-
<tinkerpop.version>3.6.1</tinkerpop.version>
31-
<weld.se.core.version>6.0.3.Final</weld.se.core.version>
32-
<mockito.verson>5.18.0</mockito.verson>
33-
<assertj.version>3.24.2</assertj.version>
34-
<junit.version>5.14.0</junit.version>
35-
<cocumber.version>7.30.0</cocumber.version>
14+
<maven.compiler.release>17</maven.compiler.release>
3615
</properties>
3716

17+
<dependencyManagement>
18+
<dependencies>
19+
<dependency>
20+
<groupId>io.cucumber</groupId>
21+
<artifactId>cucumber-bom</artifactId>
22+
<version>7.30.0</version>
23+
<type>pom</type>
24+
<scope>import</scope>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.junit</groupId>
28+
<artifactId>junit-bom</artifactId>
29+
<version>5.14.0</version>
30+
<type>pom</type>
31+
<scope>import</scope>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.assertj</groupId>
35+
<artifactId>assertj-bom</artifactId>
36+
<version>3.27.6</version>
37+
<type>pom</type>
38+
<scope>import</scope>
39+
</dependency>
40+
</dependencies>
41+
</dependencyManagement>
42+
3843
<dependencies>
39-
<dependency>
40-
<groupId>net.datafaker</groupId>
41-
<artifactId>datafaker</artifactId>
42-
<version>2.4.4</version>
43-
</dependency>
44-
<dependency>
45-
<groupId>org.eclipse.jnosql.databases</groupId>
46-
<artifactId>jnosql-mongodb</artifactId>
47-
<version>${jnosql.version}</version>
48-
</dependency>
49-
<dependency>
50-
<groupId>org.jboss.weld.se</groupId>
51-
<artifactId>weld-se-shaded</artifactId>
52-
<version>${weld.se.core.version}</version>
53-
<scope>compile</scope>
54-
</dependency>
55-
<dependency>
56-
<groupId>org.eclipse</groupId>
57-
<artifactId>yasson</artifactId>
58-
<version>3.0.4</version>
59-
<scope>compile</scope>
60-
</dependency>
61-
<dependency>
62-
<groupId>io.smallrye.config</groupId>
63-
<artifactId>smallrye-config-core</artifactId>
64-
<version>3.13.3</version>
65-
<scope>compile</scope>
66-
</dependency>
67-
<dependency>
68-
<groupId>org.eclipse.microprofile.config</groupId>
69-
<artifactId>microprofile-config-api</artifactId>
70-
<version>3.1</version>
71-
<scope>compile</scope>
72-
</dependency>
73-
<dependency>
74-
<groupId>org.junit.jupiter</groupId>
75-
<artifactId>junit-jupiter-api</artifactId>
76-
<version>${junit.version}</version>
77-
<scope>test</scope>
78-
</dependency>
79-
<dependency>
80-
<groupId>org.junit.jupiter</groupId>
81-
<artifactId>junit-jupiter-engine</artifactId>
82-
<version>${junit.version}</version>
83-
<scope>test</scope>
84-
</dependency>
85-
<dependency>
86-
<groupId>org.junit.jupiter</groupId>
87-
<artifactId>junit-jupiter-params</artifactId>
88-
<version>${junit.version}</version>
89-
<scope>test</scope>
90-
</dependency>
91-
<dependency>
92-
<groupId>org.junit.platform</groupId>
93-
<artifactId>junit-platform-suite-api</artifactId>
94-
<version>1.14.0</version>
95-
<scope>test</scope>
96-
</dependency>
97-
<dependency>
98-
<groupId>org.mockito</groupId>
99-
<artifactId>mockito-core</artifactId>
100-
<version>${mockito.verson}</version>
101-
<scope>test</scope>
102-
</dependency>
103-
<dependency>
104-
<groupId>org.mockito</groupId>
105-
<artifactId>mockito-junit-jupiter</artifactId>
106-
<version>${mockito.verson}</version>
107-
<scope>test</scope>
108-
</dependency>
109-
<dependency>
110-
<groupId>org.jboss.weld</groupId>
111-
<artifactId>weld-junit5</artifactId>
112-
<version>5.0.1.Final</version>
113-
<scope>test</scope>
114-
</dependency>
115-
<dependency>
116-
<groupId>org.testcontainers</groupId>
117-
<artifactId>mongodb</artifactId>
118-
<version>1.21.3</version>
119-
<scope>test</scope>
120-
</dependency>
121-
<dependency>
122-
<groupId>org.assertj</groupId>
123-
<artifactId>assertj-core</artifactId>
124-
<version>3.27.3</version>
125-
<scope>test</scope>
126-
</dependency>
12744
<dependency>
12845
<groupId>io.cucumber</groupId>
12946
<artifactId>cucumber-java</artifactId>
130-
<version>${cocumber.version}</version>
13147
<scope>test</scope>
13248
</dependency>
49+
13350
<dependency>
13451
<groupId>io.cucumber</groupId>
13552
<artifactId>cucumber-junit-platform-engine</artifactId>
136-
<version>${cocumber.version}</version>
13753
<scope>test</scope>
13854
</dependency>
13955

14056
<dependency>
141-
<groupId>net.java.dev.jna</groupId>
142-
<artifactId>jna</artifactId>
143-
<version>5.18.1</version>
57+
<groupId>org.junit.platform</groupId>
58+
<artifactId>junit-platform-suite</artifactId>
14459
<scope>test</scope>
14560
</dependency>
61+
14662
<dependency>
147-
<groupId>net.java.dev.jna</groupId>
148-
<artifactId>jna-platform</artifactId>
149-
<version>5.18.1</version>
63+
<groupId>org.assertj</groupId>
64+
<artifactId>assertj-core</artifactId>
15065
<scope>test</scope>
15166
</dependency>
152-
153-
15467
</dependencies>
68+
15569
<build>
156-
<pluginManagement>
157-
<plugins>
158-
<plugin>
159-
<groupId>org.apache.maven.plugins</groupId>
160-
<artifactId>maven-compiler-plugin</artifactId>
161-
<version>${maven.compile.version}</version>
162-
<configuration>
163-
<target>${maven.compiler.target}</target>
164-
<source>${maven.compiler.source}</source>
165-
</configuration>
166-
</plugin>
167-
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
168-
<plugin>
169-
<groupId>org.eclipse.m2e</groupId>
170-
<artifactId>lifecycle-mapping</artifactId>
171-
<version>1.1.4</version>
172-
<configuration>
173-
<lifecycleMappingMetadata>
174-
<pluginExecutions>
175-
<pluginExecution>
176-
<pluginExecutionFilter>
177-
<groupId>
178-
org.apache.rat
179-
</groupId>
180-
<artifactId>
181-
apache-rat-plugin
182-
</artifactId>
183-
<versionRange>
184-
[0.12,)
185-
</versionRange>
186-
<goals>
187-
<goal>check</goal>
188-
</goals>
189-
</pluginExecutionFilter>
190-
<action>
191-
<ignore></ignore>
192-
</action>
193-
</pluginExecution>
194-
</pluginExecutions>
195-
</lifecycleMappingMetadata>
196-
</configuration>
197-
</plugin>
198-
</plugins>
199-
</pluginManagement>
20070
<plugins>
71+
<plugin>
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-compiler-plugin</artifactId>
74+
<version>3.14.1</version>
75+
</plugin>
20176
<plugin>
20277
<groupId>org.apache.maven.plugins</groupId>
20378
<artifactId>maven-surefire-plugin</artifactId>
204-
<version>${maven-surefire-plugin.version}</version>
79+
<version>3.5.4</version>
20580
<configuration>
206-
<useModulePath>false</useModulePath>
81+
<properties>
82+
<!-- Work around. Surefire does not include enough
83+
information to disambiguate between different
84+
examples and scenarios. -->
85+
<configurationParameters>
86+
cucumber.junit-platform.naming-strategy=long
87+
</configurationParameters>
88+
</properties>
20789
</configuration>
20890
</plugin>
20991
</plugins>
21092
</build>
211-
212-
<repositories>
213-
<repository>
214-
<id>jakarta.sonatype.org-snapshot</id>
215-
<url>https://jakarta.oss.sonatype.org/content/repositories/snapshots/</url>
216-
<releases>
217-
<enabled>false</enabled>
218-
</releases>
219-
<snapshots>
220-
<enabled>true</enabled>
221-
</snapshots>
222-
</repository>
223-
<repository>
224-
<id>oss.sonatype.org-snapshot</id>
225-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
226-
<releases>
227-
<enabled>false</enabled>
228-
</releases>
229-
<snapshots>
230-
<enabled>true</enabled>
231-
</snapshots>
232-
</repository>
233-
</repositories>
23493
</project>

0 commit comments

Comments
 (0)