If your code directly calls a method that declares a Dom4jException throw, you need to have Dom4j in your build class path. This is only part of the method signature, and the compiler should be able to enable it.
(.. Dom4j " " B), , API Project B Dom4j. , throws, .
, , Project A Project B, Dom4J . , . , Dom4J .
, Maven . Dom4J , . , , Dom4J (, ).