When developing a create module A on your own, follow the steps below:
I. Create the a-api module
1. Create a-api
Create a-api and place it under the api folder. Then include it in the pom.xml file of api for unified packaging.
xml
<!-- Module A API interface -->
<module>a-api</module>2. Introduce the core module
In the pom.xml file of a-api, introduce the core module.
xml
<!-- Every module API must introduce common -->
<dependency>
<groupId>io.github.jiangbyte</groupId>
<artifactId>core</artifactId>
</dependency>3. Introduce the a-api module in the root pom.xml
In the root pom.xml, introduce the a-api module.
xml
<!-- Module A API interface -->
<dependency>
<groupId>io.github.jiangbyte</groupId>
<artifactId>a-api</artifactId>
<version>${revision}</version>
</dependency>II. Create the a module
1. Create a
Create a and place it under the modules folder. Then include it in the pom.xml file of modules for unified packaging.
xml
<!-- Module A -->
<module>a</module>2. Introduce the a-api module
In the pom.xml file of a, introduce the a-api module.
xml
<!-- Every module must introduce its own API -->
<dependency>
<groupId>io.github.jiangbyte</groupId>
<artifactId>a-api</artifactId>
</dependency>3. Introduce the a module in the root pom.xml
In the root pom.xml, introduce the a module.
xml
<!-- Module A -->
<dependency>
<groupId>io.github.jiangbyte</groupId>
<artifactId>a</artifactId>
<version>${revision}</version>
</dependency>III. Introduce the a module in app
In the pom.xml file of the main startup module app, introduce the a module.
xml
<!-- Main startup module introduces module A -->
<dependency>
<groupId>io.github.jiangbyte</groupId>
<artifactId>a</artifactId>
</dependency>