简体   繁体   English

如何在Intellij中定义导入的Maven项目

[英]How Do I Define Imported Maven Project in Intellij

I have opened an existing Maven project in Intellij. 我已经在Intellij中打开了一个现有的Maven项目。 Under "Project Structure -> Artifacts" the pane is empty. 在“项目结构->工件”下,该窗格为空。 When I click the + sign to add one, it chooses "unnamed.war". 当我单击+号添加一个时,它选择“ unnamed.war”。

How can I get it to generate the artifactId and version as defined in the pom? 如何获得它来生成pom中定义的artifactId和版本? I must be missing a step here. 我一定在这里错过了一步。

在此处输入图片说明

It is important to understand how you created the project. 了解您如何创建项目很重要。 Did you choose "Import project from external model"? 您是否选择了“从外部模型导入项目”? If you simply opened an IntelliJ project that someone else created, then I would suggest creating a new project using the "Import project from external model" as this should properly build your dependencies and outputs correctly. 如果您只是打开别人创建的IntelliJ项目,那么我建议您使用“从外部模型导入项目”创建一个新项目,因为这样可以正确地构建依赖关系和输出。

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

相关问题 如何在IntelliJ中运行导入的Spring项目 - How do I run an imported Spring project in IntelliJ Intellij IDEA:如何正确设置导入的Maven项目? - Intellij IDEA: How to set up Imported Maven Project Correctly? 如何在 Intellij idea 中执行 Maven Clean 和 maven 更新项目 - How to do Maven Clean and maven update project in Intellij idea 如何在IntelliJ IDEA中的Web应用程序项目中部署maven依赖项? - How do I deploy maven dependencies in a web application project in IntelliJ IDEA? 如何在 Intellij 13.1.4 的 maven 多模块项目中重建/制作 .iml 文件 - How do I rebuild/make .iml files in maven multi-module project in Intellij 13.1.4 IntelliJ IDEA中的java Maven项目,如何找到不需要的依赖项? - java Maven Project in IntelliJ IDEA, How do I find unneeded dependencies? 如果pom.xml不在根级别,如何将Maven项目添加到intellij想法中 - How do I add maven project into intellij idea if pom.xml is not in the root level 在Intellij IDE中导入Maven项目后,所有Java选项均丢失 - After maven project imported in Intellij IDE all java option missing 无法在Intellij中导入的Maven项目中创建Java包 - unable to create java package in maven project imported in Intellij 如何在Intellij中运行导入的Spring mvc项目? - How to run the imported Spring mvc project in Intellij?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM