使用Maven在IntelliJ 13中创建的工件运行Tomcat Server [英] Running Tomcat Server with an artifact created by Maven into IntelliJ 13

查看:197
本文介绍了使用Maven在IntelliJ 13中创建的工件运行Tomcat Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在IntelliJ 13的Tomcat服务器运行/调试配置之前使用maven生成工件?

It it is possible generate an artifact with maven before a Tomcat Server Run/Debug Configuration of IntelliJ 13?

我试图使用Maven配置文件执行类似的操作,以便为开发,预览和生产环境构建系统.

I have tried to do something like this, using Maven profiles, in order to build the system for Development, Preview and Production environments.

有什么想法吗?

推荐答案

要使用配置文件构建工件,必须创建Maven Run/Debug配置,如下图所示

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

然后在"Tomcat运行/调试配置"中,通过单击"+"按钮在启动前"部分中添加上述内部版本,然后选择运行其他配置",然后选择maven内部版本.

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.

结果应如下图所示.

现在,如果您首先运行Tomcat配置,则将在Tomcat之前执行maven构建.

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

这篇关于使用Maven在IntelliJ 13中创建的工件运行Tomcat Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆