没有问题的项目总是报少包,少类的错误

今天还是一样的苦逼,估计还是要加班,周六可能也要离我而去(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就可以了

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值