在Maven Netbeans中添加依赖关系 [英] Adding dependencies in Maven Netbeans
问题描述
在我的例子中,我将jmf-2.1.1e.jar文件添加到我的依赖文件夹中。当我回到我的程序,它仍然给我编译错误,它找不到javax.media包。
你让Netbeans管理依赖关系?
在项目列表中,找到并上下文并单击列表中的依赖关系文件夹。从上下文菜单中选择添加依赖关系。
此方法至少在NetBeans 7.4和8.0测试版中起作用。
I've created a Maven project and added the dependencies (jar files) that I need; however, netbeans says that it still cannot find it.
Specifically in my case, I added the jmf-2.1.1e.jar file into my dependencies folder. When I go back to my program it still gives me the compile error that it cannot find the javax.media package.
Did you let Netbeans manage the dependency?
In your "Projects" listing, find and context+click on the "Dependencies" folder in the list. From the context menu, choose "Add Dependency".
This approach works at least in NetBeans 7.4 and 8.0 beta.
这篇关于在Maven Netbeans中添加依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!