Use Maven library without booze Maven Koolaid

I want to use diffplug / Durian library but don't want to use Maven. Is there a way to use the Maven library without using Maven in the project?

+1


source to share


2 answers


I found that IntelliJ IDEA allows you to export a Maven module to a JAR that can be used in non-Maven projects.

https://www.jetbrains.com/help/idea/2016.1/downloading-libraries-from-maven-repositories.html



I am new to Maven and I need to know what "Maven Coordinate" is. I found it for the library in question at https://maven-repository.com/artifact/com.diffplug.durian/durian/3.4.0 and this is the line "com.diffplug.durian: durian: 3.4. 0 ".

Basically, follow Project Structure -> Project Settings -> Libraries -> "+" -> New Project Library -> From Maven. The resulting dialog box takes a Maven coordinate and has a Load option that will make a nice JAR at the specified location from the Maven library you are importing. You can add source and javadocs. Once downloaded, you will navigate to the system folder containing the new JAR and paste it into your real non-Maven project (an Eclipse project, in my case).

+1


source


This has a .jar link and lists its dependencies. http://mvnrepository.com/artifact/com.diffplug.durian/durian/3.4.0



Download the jar - then all the jar dependencies and their dependencies and add them to the classpath.

+1


source







All Articles