目录 搜索 展开 Spring Boot 简介 Spring Boot 快速入门 Spring Boot 项目实践 加密传输 认证授权 对象存储 dynamic-tp 前端视图 前端长连接 数据存储 数据驱动 数据订阅 数据权限 数据缓存 数据版本 数据采集 数据ETL 辅助工具 并发组件 IP 识别 图文识别 对象转换 dropwizard-metrics-spring-boot-starter 项目编译 maven-client-spring-boot-starter maven-embedder-spring-boot-starter maven-invoker-spring-boot-starter 动态插件 二维码 GEO 计算 视频直播 IM 平台 消息推送 消息队列 远程服务 文档转换 安全防护 网络请求 日志记录 日历天气 硬件驱动 任务调度 接口文档 人工智能 嵌入式容器 Spring Boot 实现数据泄露防护:使用 Apache Tika 检测敏感信息 Springboot 升级到2.7.0 踩过的坑 Springcloud不能识别bootstrap配置文件 暂无相关搜索结果! 阅读次数:254 本文档使用 MinDoc 发布 maven-invoker-spring-boot-starter maven-invoker-spring-boot-starterSpring Boot Starter For Maven Invoker说明 基于 maven-invoker 的 Spring Boot Starter 实现 整合 maven-invokerMaven<dependency> <groupId>com.github.hiwepy</groupId> <artifactId>maven-invoker-spring-boot-starter</artifactId> <version>${project.version}</version> </dependency>复制Sample import javax.annotation.PostConstruct; import org.apache.maven.spring.boot.ext.MavenInvokerTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @EnableMavenInvoker @SpringBootApplication public class Application { @Autowired private MavenInvokerTemplate mavenInvokerTemplate; @PostConstruct private void init() { //mavenInvokerTemplate.deploy(file, groupId, artifactId, version, packaging, url, repositoryId); //mavenInvokerTemplate.deploy(basedir, file, groupId, artifactId, version, packaging, url, repositoryId); //mavenInvokerTemplate.execute(basedir, goals); //mavenInvokerTemplate.execute(basedir, goals); } public static void main(String[] args) throws Exception { SpringApplication.run(Application.class, args); } } 复制作者:Jeebiz 创建时间:2023-03-21 00:06最后编辑:Jeebiz 更新时间:2024-11-25 20:34