远程运行 spring-boot 应用程序

时间:2020-12-22 23:25:59

标签: spring-boot maven

我有一个 spring-boot 项目,它分为 api 、 impl 和 client ,为了测试我们希望客户端能够运行 spring boot app 以便运行一些 IT 测试,

所以,我的问题是如何从客户端文件夹启动驻留在 impl 文件夹中的应用程序。

我手动执行此操作: mvn -f ../impl/pom.xml spring-boot:run -Dspring-boot.run.profiles=local

但我无法从个人资料中做到这一点,

到目前为止我的配置:

                            <executions>
                                <execution>
                                    <id>start</id>
                                    <phase>pre-integration-test</phase>
                                    <goals>
                                        <goal>start</goal>
                                    </goals>
                                </execution>
                                <execution>
                                    <id>stop</id>
                                    <phase>post-integration-test</phase>
                                    <goals>
                                        <goal>stop</goal>
                                    </goals>
                                </execution>
                            </executions>

0 个答案:

没有答案