Maven, how to add additional libs not available in repo

前端 未结 5 1615
深忆病人
深忆病人 2020-12-11 05:57

I have a maven project that has a set of library dependancies that are not available via any maven repository. How can I add those libraries to the pom? I want to do this s

5条回答
  •  离开以前
    2020-12-11 06:17

    You can declare it as a dependency with system scope.

    
    ...
     
       
         sun.jdk
         tools
         1.5.0
         system
         ${java.home}/../lib/tools.jar
       
     
     ...
    
    

提交回复
热议问题