开发者

Is there a way to have JAR dependencies of a Netbeans project provided to another (dependent) project automatically?

Assume the following project setup in Netbeans

Project A depending on Project B depending on lib/projectBLib.jar

In my current setup, I have to tell Project A that it depends on projectBLib.jar, otherwise it is not loaded. I would have expected Netbeans to handle dependency c开发者_运维技巧hains for me (as other IDEs do). So am I doing something wrong, or do I really have to configure this manually for each project?

Thanks for any suggestions, Peter :)


You can also use Maven and the Maven NB plug-in for this. (If the plug-in is not buggy), when you specify in your Maven pom.xml file that A depends on B, it will do the rest automatically for you.


You are not doing anything wrong. You must add the lib explicitly.

There is an enhancement request that sounds very similar to the question you have raised: http://netbeans.org/bugzilla/show_bug.cgi?id=47507.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜