4.2.2 Creating Modules Using Maven Archetype
We can create Biz Module in three ways, and this article introduces the second one:
- Splitting a large application into multiple modules
- Transforming an existing application into a single module
- Directly creating a module using a scaffold
- Transform ordinary code fragments into a module
It’s easy to creating a module from maven archetype, all you need to do is input the Maven groupId and artifactId for the archetype in IDEA.
<dependency>
<groupId>com.alipay.sofa.koupleless</groupId>
<artifactId>koupleless-common-module-archetype</artifactId>
<version>{koupleless.runtime.version}</version>
</dependency>
The module created from this archetype has already integrated the module packaging plugin and automatic slimming configuration. It can be directly packaged as a module and installed on the base, or started independently locally.
Feedback
Was this page helpful?
Welcome propose feedback to community!
Welcome propose feedback to community, or improve this document directly.。
Last modified 2024.14.11: Update module-startup.md (39aeb80)