简体   繁体   English

IntelliJ Maven项目未建立

[英]IntelliJ Maven Project not building

I have a Eclipse background and have recently moved to a new job and am using IntelliJ. 我具有Eclipse背景,最近又搬到了一家新公司,并且正在使用IntelliJ。

I have an existing Maven Project, and in IntelliJ it does not build. 我有一个现有的Maven项目,并且在IntelliJ中无法构建。 ie we run mvn commands to build and have a Payara serer to run it. 即我们运行mvn命令进行构建,并使用Payara serer来运行它。 I am trying to get 'HotSwap' working. 我正在尝试使“ HotSwap”工作。 In order to do so< I need to get IntellliJ to build the Maven Project (multi-modules). 为了做到这一点,我需要获得IntellliJ来构建Maven项目(多模块)。

I have looked online and tried the following: 我在网上查看并尝试了以下方法:

I added new modules: 我添加了新模块: 在此处输入图片说明

But when I edit a java file, there is nothing being compiled, ie I don't see compilation errors: 但是,当我编辑Java文件时,没有任何东西被编译,即我看不到编译错误:

在此处输入图片说明

Any ideas of how I can get IntelliJ to build the project? 关于如何让IntelliJ构建项目的任何想法?

Thanks 谢谢

在此处输入图片说明

You have to create a new Glashfish Server and then reference Payara. 您必须创建一个新的Glashfish服务器,然后引用Payara。 On 'UPDATE' action you have to select Hot Swap classes. 在“更新”操作中,您必须选择“热交换”类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM