Skip to content

Instantly share code, notes, and snippets.

View tangyanlin's full-sized avatar

Tang Yanlin tangyanlin

  • Zhejiang University
  • Shanghai
View GitHub Profile
@timmolderez
timmolderez / pom.xml
Last active May 1, 2024 11:29
Adding dependencies to local .jar files in pom.xml
If you'd like to use a .jar file in your project, but it's not available in any Maven repository,
you can get around this by creating your own local repository. This is done as follows:
1 - To configure the local repository, add the following section to your pom.xml (inside the <project> tag):
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/libs</url>