Maven: Adding custom jar dependency

Including a jar file that isn't available as a standard Maven dependency

One of the main advantages of Maven is not having to deal with jar files directly.

If you depend on JUnit, you just add it as a dependency in your pom.xml, you just add the magic words to specify JUnit as a dependency in your pom.xml, and the jar gets automatically downloaded and added to your classpath.

Same with all the parts of Spring Framework, Apache Commons, or whatever. Pretty much anything that is a standard 3rd party java library.

But what is the thing you need is NOT standard? Maybe its too new to have been put into Maven Central?

Examples:

This is the best solution I’ve found:

Other resources