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...
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).
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>
Create a maven project and connect the dependency, it will be downloaded automatically