idea指定pom的profile

版权声明:everything https://blog.csdn.net/wanbf123/article/details/82898586

1、在Edit Configurations中创建个Maven启动项

启动项配置如下(此处我的启动项名称为‘Build’,cmd中配置 install -DskipTests 可跳过测试用例):

2、修改tomcat启动项下的Before launch项,点击加号添加之前新增的Maven启动项(次处为‘Build’):

点击加号选择Run Another Configuration:

选择之前配置的Maven的启动项:

配置完成后Before launch下的显示效果:

3、配置自己的Deployment后使用tomcat启动测试:

猜你喜欢

转载自blog.csdn.net/wanbf123/article/details/82898586