Add maven in IntelliJ IDEA to a regular java project


How do I do this (exactly the versions 7.0.13).

Http://search.maven.org/#artifactdetails%7Cit.unimi.dsi%7Cfastutil%7C7.0.13%7Cjar

Add an IntelliJ IDEA to a regular java project ? Not manually by downloading the jar...

Author: ilw, 2016-09-03

4 answers

You can unload the library from Maven.
To do this:
1. Enter the project structure;

2. In the "Libraries" section, select "From Maven";

3. Enter the path to the library (you can search by both groupId and artifactId).
enter a description of the image here

 7
Author: Feeco, 2016-09-03 15:03:23

A late answer, probably, but for the story:

You can add to the root of a regular project in IDEA pom.xml (at least from another project), fix it group, artifact, dependencies. Then, in the context menu for this file, select "Add as Maven Project". The project will now become a maven, then we will configure it as a regular maven project.

Update the simplest XML file looks like

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
         http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>........</groupId>
    <artifactId>.....</artifactId>
    <version>1.0-SNAPSHOT</version>
</project>
 14
Author: Полина Бевад, 2018-01-08 12:52:15
  1. Right-click on the project folder
  2. Select " Add Framework Support" enter a description of the image here

  3. Select from the list Maven

 13
Author: Lukyanov Mikhail, 2019-07-10 06:08:29

Create a maven project and connect the dependency, it will be downloaded automatically

 -3
Author: Vitalii Kravchenko, 2016-09-03 12:14:11