How to add local jar files to a Maven project?

后端 未结 30 3267
悲&欢浪女
悲&欢浪女 2020-11-21 04:58

How do I add local jar files (not yet part of the Maven repository) directly in my project\'s library sources?

30条回答
  •  半阙折子戏
    2020-11-21 05:04

    Important part in dependency is: ${pom.basedir} (instead of just ${basedir})

    
        org.example
        example
        1.0
        system
        ${pom.basedir}/src/lib/example.jar
    
    

提交回复
热议问题