简体   繁体   English

如何在基于Eclipse Maven的项目中添加缺少的jar

[英]How to add missing jars in Eclipse Maven based project

I am new to maven with eclipse. 我是日食新手。 I am using m2e plugin(version 1.2.0). 我正在使用m2e插件(版本1.2.0)。

i have imported maven project, it is showing build path errors due to some jars are missing. 我已经导入了maven项目,由于缺少一些jar,它显示出构建路径错误。 How to add those jars to the build path. 如何将这些罐子添加到构建路径。 Do i need to download manually and add to the eclipse build. 我需要手动下载并添加到Eclipse构建中吗?

i am learning about pom.xml, please help me. 我正在学习pom.xml,请帮助我。

在Maven项目中生成错误

you should add dependency of missing jar into pom.xml file. 您应该将缺少的jar的依赖项添加到pom.xml文件中。 As soon as you add them , eclipse will automatically download those jar files for you. 添加它们后,eclipse会自动为您下载这些jar文件。 You can easily find maven dependencies on google. 您可以轻松地在Google上找到Maven依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM