简体   繁体   中英

maven will change my project's name, how to stop it?

I'm trying to import a maven project , but intellij-idea will change my project's name by maven's actifactId.

I have searched many method to solve it , but I find the only useful method that is to change the .iml files' name manually.

It's wasting my time to do the job .

So how can I solve it effectively?

Thank you for your help.

IntelliJ's behaviour here is quite standard but if you really cannot change the artifactId and if the name derived from the artifactId is really not acceptable then you can either:

  • Choose a different name in the last step of the Import Project wizard

  • Change the IntelliJ project name from File > Project Structure . Note: this is only allowed if you create the project with Project format: .idea (directory based) , you can choose the project format on the second step of the Import Project wizard. Here are some example screenshots:

在此处输入图片说明

在此处输入图片说明

In the second screenshot the Name field is editable.

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