There is some project. It contains pom.xml
, which describes the dependencies.
The project is created in Intellij IDEA
.
How to add libraries to the project so that they download and hook into the IDE so that no problems like "class not found" arise later.
Of course. In IDEA
usually when adding dependencies to the pom
file, an inscription appears with Auto-import
for maven. As a result, click there and all the libraries are successfully added to the project.
And how to do the same, only from the command line (using even the one that is in the IDE itself) using maven
?
pom.xml
file? - JBaruchmvn "что-то там"
commandmvn "что-то там"
so that thejar
library files described in dependency are added to the project folder. IDEA can itself perform these things, but still wanted to understand exactly how usingmvn
this operation. - I. Smirnov