[英]How can I make JetBrains Intellij IDEA 13 recognize a Git imported project as a Maven project?
I have been having trouble with IDEA ( JetBrains Intellij IDEA 13
) not reading the pom.xml
file after the project has been imported using the VCS
. 使用
VCS
导入项目后,IDEA( JetBrains Intellij IDEA 13
)无法读取pom.xml
文件时遇到了麻烦。 How can I make IDEA recognize this as a Maven project
so it gets all the dependencies from the pom.xml
? 如何使IDEA将其识别为
Maven project
以便它从pom.xml
获取所有依赖项?
This is what the pom.xml
currently looks like in Project View
: 这就是
pom.xml
当前在Project View
样子:
To test it try this our: 要对其进行测试,请尝试以下操作:
If everything is working correctly it will ask you to create an Intellij project 如果一切正常,它将要求您创建一个Intellij项目
How can I fix this? 我怎样才能解决这个问题?
Add as Maven project
", the project will now turn into a Maven project and the pom.xml file icon should turn into an m
, the Maven
logo. Add as Maven project
”,该项目现在将变为Maven项目,并且pom.xml文件图标应变为m
,即Maven
徽标。 How did it occur? 它是怎么发生的?
This occurs when you don't include the " .idea
" folder in the Git
repository. 当您不在
Git
存储库中包含“ .idea
”文件夹时,就会发生这种情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.