简体   繁体   中英

How Do I Define Imported Maven Project in Intellij

I have opened an existing Maven project in Intellij. Under "Project Structure -> Artifacts" the pane is empty. When I click the + sign to add one, it chooses "unnamed.war".

How can I get it to generate the artifactId and version as defined in the pom? 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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