Problem Description
Running module: sou-main Created module: sou-admin
sou-main must depend on sou-admin, otherwise the running module cannot find classes from the newly created module
Solution
Add dependency in sou-main:
<!-- sou-main-->
<dependency>
<groupId>com.sou</groupId>
<artifactId>sou-admin</artifactId>
</dependency>
Configure version management in sou-parent:
<!-- sou-parent-->
<dependencyManagement>
<dependency>
<groupId>com.sou</groupId>
<artifactId>sou-admin</artifactId>
<version>1.0</version>
</dependency>
</dependencyManagement>