Based on your ideas, I would suggest the following folder structure:
+
+
+
+
+
+
+
which lead to the presence of a parent (ProjectParent), which must contain a dependencyManagement section for defining dependencies with their respective versions as follows:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>testng</groupId>
<artifactId>testng</artifactId>
<version>6.3.1</version>
<scope>test</scope>
</dependency>
...
</dependencies>
</dependencyManagement>
:
com.company.project - 1.0.0-SNAPSHOT
<dependencies>
<dependency>
<groupId>testng</groupId>
<artifactId>testng</artifactId>
</dependency>
..
</dependencies>
.
, , .