maven add local jar

Although the local jar package can be imported by installing the jar package to the local repository.
However, for old projects, there are often cases where a local jar package is required. Use systemPath to load local jar packages, which is more natural and will not pollute the local warehouse.
<dependency>
      <groupId>sample</groupId>  
       <artifactId>com.sample</artifactId>  
       <version>1.0</version>
       <scope>system</scope>
       <systemPath>${project.basedir}/src/main/resources/yourJar.jar</systemPath>
</dependency>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326530964&siteId=291194637
Recommended