tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包,所以找不到
解决方法:设置一下eclipse:
项目 —> properties -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependencies -> Finish -> OK
把对应的Maven依赖包也发布到tomcat,调试时会自动把那些jar发布到指定目录下,tomcat也能找到那些jar了。
相关文章
- maven项目构建报错:Could not find artifact com.xxx.cloud:xxx-cloud:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM
- 关于在MyEclipse中创建maven webapp项目时报错:Could not resolve archetype org.apache.maven.archetypes
- 启动Maven项目时报错Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project **-web: Failed to clean project: Failed to delete E:\**\target\tomcat\logs\access_lo
- Maven多模块项目单独编译子模块项目时报错:Failed to execute goal on project/Could not resolve dependencies for project
- maven依赖的项目报错Could not resolve dependencies for project
- maven项目 报错 Lifecycle mapping "org.eclipse.m2e.jdt.JarLifecycleMapping" is not available.
- MyEclipse导入Maven项目报错 Plugin execution not covered by lifecycle configuration:
- Maven在导入其他项目时报错:Plugin execution not covered by lifecycle configuration
- maven项目下载报错:Failure to transfer org.apache.maven:maven
- maven编译项目报错,提示找不到符号或程序包XXX不存在