Apache Maven (hereinafter Maven) is a project management tool for Java. Maven automatically fetches sources and jars from the repository according to the pom.xml specification. In short, it's a Java open source vault. I'm new to Java so I first learned about it: umbrella:
What is Maven http://d.hatena.ne.jp/keyword/Maven IntelliJ-like Maven settings (head family) https://www.jetbrains.com/help/idea/getting-started-with-maven.html
that's all. it's simple. This time, I will describe how to add it to the project being created. I wonder if this can be covered even if it is not a new project ...: frowning2:
This time, we will make Project use a very convenient open source called "Smile" that can use a lot of statistical processing. Github Smile https://github.com/haifengl/smile It's very convenient, so please give us Star: star :.
File→New→Project If you press in the order of, the above window will appear. Then press Maven in this window. So, Next ... Then, Next ... Then ... A window like this will appear, so let's put in any words like this. So, Next ... Well here is also suitable. Please memorize only the location properly. And Finish !! I am a New Window sect.
This completes 1.
File→Project Structure→Module Then click the green plus button. Then click Import Project.
Then, a window like this will appear. Click the Maven Project you created earlier and press OK. Then ...
It looks like this, so please do as shown in the image above.
Next→Next→Finish→OK
Please end with. Not finished yet: tea:
Then again File→Project Structure→Libraries Click the green plus button again with.
Then click From Maven. Finally, download the source and jar files from Maven! !! Enter it like this. Here, enter the repository you want to obtain. It will search to some extent and will give you suggestions, so select from there and press click. If you do not see the search response ear, press the magnifying glass mark on the right to search.
It's done. Press OK.
IntellJ seems to be able to search without filling in pom.xml. Of course, I think there is also a way to fill in pom.xml.
Recommended Posts