我有一个关于Bitbucket的项目.只提交了来源.为了将项目检索到新机器上,我在IntelliJ中使用了Version Control> Checkout from Version Control.
然后询问我是否要从此源创建一个新项目,我回复是.到现在为止还挺好.它为我创建了一个很好的小Java项目,由一个模块组成.
但是,我将此项目纳入IntelliJ的目标是将其转变为Maven项目.我无法在任何地方找到任何可以让我这样做的选项!
有没有办法让IntelliJ为我生成一个基本的空pom.xml,具有名称和artifactId以及存储库?或者,有没有办法将项目作为Maven项目导入?(每当我尝试从现有源创建项目时,它只给我一个Java项目的选项.)
我有一个外部托管的空存储库。我现在想在本地创建一个由该源控制的 Intellij/maven 管理的 Java 项目。
我试过:
1>check out from source control
2>"would you like to create an IDEA proect for the sources you have checked out?" - YES
3>import from external model
4>configure stuff
5>select maven projects to import
Run Code Online (Sandbox Code Playgroud)
现在我被卡住了,因为列表是空的。
我也试过
1> setting up the maven project manually
2> initializing the git repository in root directory
3> adding origin
4> importing project into intellij
5> configuring the root directory, as suggested by intellij, for git
6> committing changes
7> selecting …
Run Code Online (Sandbox Code Playgroud)