스프링 DM을 읽다가도 managed destroy라는 단어를 보고.. 이게 무슨 말인가 곰곰히 생각을 한 적이 있었는데요. 오늘도 저 단어를 만나서 고생을 했습니다. Maven 2.0.9에 새로 추가된 import managed dependency를 적용해보려고 했는데, 한바탕 Maven 지옥에 들락거리다 지쳐서 오늘은 실패를 기록하고 이만 집에 들어가려고 합니다.

Managed Dependency 넌 대체 무엇이니?

As an example, consider the following projects:

   1. ThirdParty 1.0 - contains declarations of third party jars.
   2. Project A 1.0 - A project that uses declarations in ThirdParty and produces some number of versioned artifacts.
   3. Project B 1.0 - A project unrelated to Project A. It also uses declarations in ThirdParty and produces some number of versioned artifacts.
   4. Project C 1.0 - Has dependencies on ThirdParty, Project A, and Project B.

In Maven 2 it is not possible for Project C to use the managed dependencies from both A and B since neither has any direct relationship to the other.

참조: http://docs.codehaus.org/display/MAVEN/Importing+Managed+Dependencies

이게 무슨 이야기인지 이해가 안 되고 있습니다.

C가 A랑 B를 dependency에 추가하면, A와 B가 사용하는 dependency들도 C에 추가되어서 C프로젝트에서도 사용할 수 있는데, 대체 MD가 뭐길래.. C에서 사용하는게 불가능한 걸까요.