Maven and dependent modules

后端 未结 6 1775
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 08:16

Colleagues have been touting the wonders of maven and its magical dependency stuff but I\'m finding that it fails at what I would consider the obvious use.

Suppose I

6条回答
  •  庸人自扰
    2020-12-13 08:53

    A reason I can think of that your desired behaviour hasn't been implemented is as follows:

    Suppose I'm working on both projects A and B. Currently A is broken. If dependency resolution happened as you would like, I would never be able to build B until A was fixed. So I either have to roll back my changes to A, or focus on fixing A first. Either way possibly not what I want to focus on right now.

    Generally B wants to work with the "last good" version of A, rather than the latest. Using the dependencies from the repository means they at least compiled ok (and hopefully the unit tests were run too).

提交回复
热议问题