从现有 Spring Boot 项目抽象出 Maven Archetype 的一段流程记录,包括 Velocity 转义、.gitignore 被过滤、post-generate 钩子、git-commit-id 插件等真实踩坑点。
Posts for: #maven
用 Maven Archetype 管理微服务 Scaffold:为什么我这里暂时没用 Spring Initializr
在多模块 Maven 单仓微服务平台中,我选了 Maven Archetype 而非 Spring Initializr 来管理服务脚手架。本文整理选型背后的原因、六类 Archetype 的分层逻辑、为什么我倾向给 Archetype 本身也加测试,以及版本维护策略。