To build a artifact with a profile you have to create a Maven Run/Debug configuration as in the following image

Then In Tomcat Run/Debug Configuration add above build in 'Before Launch' section by clicking the '+' button and select 'Run Another Configuration' then select the maven build.

The Result should like the below image.

Now if you run Tomcat configuration first the maven build will be executed before Tomcat.

最新文章

  1. 获取Android版本信息和电话信息
  2. android代码优化----ListView中自定义adapter的封装(ListView的模板写法)
  3. windows API 开发飞机订票系统 图形化界面 (二)
  4. 登录Cloudera Manager时报错org.hibernate.exception.GenericJDBCException: Could not open connection
  5. JAVA中集合类的使用
  6. WCF之错误和异常
  7. 转:Android开发中的MVP架构(最后链接资源不错)
  8. 意外地解决了一个WPF布局问题
  9. Centos 7 学习加入用户
  10. 记录WEUI中滚动加载的一个BUG
  11. 终端的rz命令,覆盖原文件。
  12. python--对象实例化过程
  13. css 两端对其
  14. IntelliJ IDEA 导入多个maven项目
  15. avalonjs 实现简单购物车
  16. 2668: [cqoi2012]交换棋子
  17. java--xml文件读取(DOM)
  18. object.wait为什么要和synchronized一块使用
  19. 使用random函数实现randint函数的功能
  20. python的上下文管理

热门文章

  1. CSS水平导航条和纵向导航条
  2. [noip2005提高]过河 dp
  3. Drawing with GoogLeNet
  4. Javacript中(function(){})() 与 (function(){}()) 区别 {转}
  5. POJ 3279
  6. git的安装使用和代码自动部署
  7. Activity学习(一)——状态转变
  8. IDEA开发spark本地运行
  9. WAMP error: Forbidden You don't have permission to access /{you_app_name} on this server
  10. HDU5568/BestCoder Round #63 (div.2) B.sequence2 dp+高精度