[英]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.