由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - in eclipse, how do you use inter dependencies?
相关主题
有人用过 ObjectDB in Maven 没有?Argh, maven sucks
ivy问题dependency version collision problem
Maven's newbie questionjetty疑问
Maven浅淡(一)一个class file dependencies 太多怎么搞?
eclipse有没有maven plugin配置的工具java ee新手求教eclipse问题
OpenShift的配置一问eclipse can't resolve transitive dependency projects ?
Eclipse可以让一个项目使用refer另一个项目吗Eclipse export,有javaws的时候如何设置
Maven shade plugin question没法用Re: netbeans 4.0 is very good
相关话题的讨论汇总
话题: eclipse话题: projects话题: inter话题: dependency
进入Java版参与讨论
1 (共1页)
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

1 (共1页)
进入Java版参与讨论
相关主题
没法用Re: netbeans 4.0 is very goodeclipse有没有maven plugin配置的工具
有谁来给比较下 netbeans 和 myeclipse?OpenShift的配置一问
eclips还是netbeans?Eclipse可以让一个项目使用refer另一个项目吗
open a project in eclipseMaven shade plugin question
有人用过 ObjectDB in Maven 没有?Argh, maven sucks
ivy问题dependency version collision problem
Maven's newbie questionjetty疑问
Maven浅淡(一)一个class file dependencies 太多怎么搞?
相关话题的讨论汇总
话题: eclipse话题: projects话题: inter话题: dependency