没有问题的SVN项目总是报少包,少类的错误
今天还是一样的苦逼,估计还是要加班,周六可能也要离我而去(2018年2月的活要上线了。。today is 2019_3_28)
因为刚上手没十天(也就刚刚十天),对项目也不太了解。导致一个错误--别人的项目在SVN上下载后都可以正常运行,只有我的不行。。最终SVN反复下载+排查+上网搜索。找到了原因-----没有导入Maven
File--Setting--搜索Maven
我用的是Maven3.6的,记得要在Maven中的conf文件夹下修改路径
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
<localRepository>E:\maven\你项目所依赖的包的地址(要解压)</localRepository>
<!-- interactiveMode
| This will determine whether maven prompts you when it needs input. If set to false,
| maven will use a sensible default value, perhaps based on some other setting, for
| the parameter in question.
|
| Default: true
<interactiveMode>true</interactiveMode>
-->
注意要有localRepository那行,指向的是该项目依赖的Maven包
重新tomcat就可以了
果然新手点哪都是坑啊。。。好气哦。。。