How to add Maven dependency jar file from the lib folder

前端 未结 4 2183
悲&欢浪女
悲&欢浪女 2021-02-19 08:07

I am trying to add a jar file to the Maven dependency in my project. The settings.xml is configured to set the repository to a public repository. But this particular jar is not

4条回答
  •  盖世英雄少女心
    2021-02-19 08:23

    Changing pom.xml worked for me (jar in "/lib" directory in the root project folder) :

        
            com.google.code.gson
            gson
            2.8.6
            system
            ${project.basedir}/lib/gson-2.8.6.jar
        
    

提交回复
热议问题