Is it best to Mavenize your project jar files or put them in WEB-INF/lib?

后端 未结 3 1441
南旧
南旧 2021-01-25 14:26

I\'ve been doing this for all of the jar files that my Spring MVC project needs:

call mvn install:install-file -DgroupId=vegetables -DartifactId=potatoes -Dversi         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-25 15:24

    You just need to add the dependencies in your pom.xml file, no need to install them manually. Maven will download the libraries and put it in your local repository whenever needed. Only if you want to use third party(custom) libraries, you may go for installing it in your local repository.

提交回复
热议问题