Create a project from existing source code?

后端 未结 1 1904
旧时难觅i
旧时难觅i 2021-01-26 09:50

I downloaded an open source library distributed as source code (Apache Crunch). I want to compile it to JAR. To do this, I need to import the folder containing many folders cont

相关标签:
1条回答
  • 2021-01-26 10:49

    Apache Crunch is distributed in a Git repository with public read access, namely https://git-wip-us.apache.org/repos/asf/crunch.git. Fortunately, IntelliJ IDEA allows you to import straight from a version control repository such as Git. On the project chooser screen, simply select the "Check out a project from version control" and provide the URL to the Git repository:

    enter image description here

    Alternatively, you can skip the version control route. If you download the source code some other way, you will find that since it is a Maven project. You can then simply use "Import Project" on the same project chooser screen, and navigate to pom.xml within the project folder.

    If you don't see the project chooser, but IDEA opens a project directly, then click File->close project to see the chooser.

    (I'm using Ultimate so there might be small UI differences to the Community Edition, but the workflow here should be either exactly the same or very close)

    0 讨论(0)
提交回复
热议问题