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

后端 未结 3 1405
南旧
南旧 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:06

    All your dependencies should reside under the local repository. According to the Maven convention/best practices, you should not keep jar files in your project.

    Convert your project to a fully war based Maven project. This will place all your dependencies (jar files) under your webapp's WEB-INF/lib directory. Thus you will not have to worry about long paths.

提交回复
热议问题