Maven2 Eclipse插件 [英] Maven2 Eclipse Plugin

查看:128
本文介绍了Maven2 Eclipse插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将依赖项添加到项目中,以便我的jar(特别是pdfbox 1.6)可以看到其他jar.通过右键单击项目功能添加我的依赖关系之后,maven提供了如何确保依赖关系正常工作以及我所做的工作是正确的?我查看已创建的pom.xml文件,因此目标文件夹和类,测试类子文件夹用于什么?谢谢

I have just added dependencies to a project so that my jar, specifically pdfbox 1.6, can see other jars. After adding my dependencies with the right click onto project feature that maven offers how can I be sure that the dependencies work, and that what I've done is correct? I view a pom.xml file that has been created so what are the target folder and classes,test-classes subfolders used for? Thanks

推荐答案

,您可以构建项目并查看依赖项是否在最终工件中. eclipse也可以向您显示maven依赖项下的依赖项,请参见屏幕截图:

you can build your project and see if the dependencies are in the final artifact. Also eclipse can show you the dependencies under maven dependencies, see the screenshot :

这篇关于Maven2 Eclipse插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆