c******n 发帖数: 4965 | 1 say u have 2 projects A and B, B uses A's output jar
u open 2 projects in eclipse
what is the idiomatic way to setup B's dependency on A?
just add A's jar location to B's build path?
in maven it's easier:
go to A, mvn install
then put A's dependency in B's pom.xml | w*******s 发帖数: 940 | 2 哈哈,正好有可能回答你的问题
http://mitbbs.com/article_t/Java/31116215.html
就用maven吧
【在 c******n 的大作中提到】 : say u have 2 projects A and B, B uses A's output jar : u open 2 projects in eclipse : what is the idiomatic way to setup B's dependency on A? : just add A's jar location to B's build path? : in maven it's easier: : go to A, mvn install : then put A's dependency in B's pom.xml
| g*****g 发帖数: 34805 | 3 You can simply add A as B's required project on the build path.
【在 c******n 的大作中提到】 : say u have 2 projects A and B, B uses A's output jar : u open 2 projects in eclipse : what is the idiomatic way to setup B's dependency on A? : just add A's jar location to B's build path? : in maven it's easier: : go to A, mvn install : then put A's dependency in B's pom.xml
| F****n 发帖数: 3271 | 4 Depends on what kind of projects you have. By default, you are using Eclipse
's IDE's project definition, and in that case you can specify the build path
of B to depend on A. You also need to export all dependencies jars used in
A. If it's a plug-in project, then things can get quite complicated.
Basically you should convert A into a plugin project and specify it into B's
plug-in definition.
【在 c******n 的大作中提到】 : say u have 2 projects A and B, B uses A's output jar : u open 2 projects in eclipse : what is the idiomatic way to setup B's dependency on A? : just add A's jar location to B's build path? : in maven it's easier: : go to A, mvn install : then put A's dependency in B's pom.xml
|
|