Create local maven repository

Set up a simple repository using a web server with its default configuration. The key is the directory structure. The documentation does not mention it explicitly, but it is the same structure as a local repository. To set up an internal repository just requires that you have a place to put it, and then start … Read more

Get source JARs from Maven repository

Maven Micro-Tip: Get sources and Javadocs When you’re using Maven in an IDE you often find the need for your IDE to resolve source code and Javadocs for your library dependencies. There’s an easy way to accomplish that goal. mvn dependency:sources mvn dependency:resolve -Dclassifier=javadoc The first command will attempt to download source code for each … Read more

How to add local jar files to a Maven project?

You can add local dependencies directly (as mentioned in build maven project with propriatery libraries included) like this: <dependency> <groupId>com.sample</groupId> <artifactId>sample</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/resources/Name_Your_JAR.jar</systemPath> </dependency> Update In new releases this feature is marked as deprecated but still working and not removed yet ( You just see warning in the log during maven start). An issue … Read more