Java Eclipse到IntelliJ IDEA:创建';运行为';配置
我最近从Eclipse迁移到IntelliJ,并试图为我导入的Maven项目创建一个运行配置。Eclipse的说明相当简单,如下所述 要运行项目,请首先创建运行配置:Java Eclipse到IntelliJ IDEA:创建';运行为';配置,java,eclipse,maven,intellij-idea,Java,Eclipse,Maven,Intellij Idea,我最近从Eclipse迁移到IntelliJ,并试图为我导入的Maven项目创建一个运行配置。Eclipse的说明相当简单,如下所述 要运行项目,请首先创建运行配置: 1) Select project name and right click 2) Choose `Run As` then `Run Configurations` 3) Launch new configuration and enter the project's location as the base directory
1) Select project name and right click
2) Choose `Run As` then `Run Configurations`
3) Launch new configuration and enter the project's location as the base directory
4) Set the `goal` to run on a `localhost`.
5) Click Configure button to configure the external maven location
我的问题在第4步。我正试图为我的Maven跑步创建一个
目标
,但我似乎在任何地方都找不到目标
选项。是否有办法获得此目标
选项?或者,在IntelliJ中运行Maven项目的最佳方式是什么?您需要遵循以下步骤:转到文件->设置->应用程序服务器,单击+(绿色按钮)和应用程序服务器。单击“确定”。
运行->编辑配置->单击
+
(绿色按钮)并选择您的应用程序服务器,在服务器
选项卡下配置端口和其他支架材料(您也可以在此选项卡中发布maven目标,如clean install,以便在启动应用程序时maven将构建项目),然后切换到部署选项卡
,单击+(绿色按钮),您将看到您想要部署的工件名称。应该对此进行解释。谢谢您的提示。外部服务器的流程是否相同?@Black很高兴这有帮助,您所说的外部服务器到底是什么意思?没问题。我已经弄明白了,所以这可能是个愚蠢的问题。