From 734356ab74d2896ec8d7530af0d2fa60ff58001f Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 16 Jan 2014 18:23:12 +0100 Subject: [PATCH] Improved documentation of the dependency-scanning on the pitfalls-page --- src/site/apt/pitfalls.apt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/site/apt/pitfalls.apt b/src/site/apt/pitfalls.apt index a25abcd7..355e369e 100644 --- a/src/site/apt/pitfalls.apt +++ b/src/site/apt/pitfalls.apt @@ -6,9 +6,12 @@ Annotated classes in dependencies are not found. - hibernate4-maven-plugin does not scan transitive dependencies for - annotated classes. If some of your annotated classes are hidden in a - transitive dependency, you can simply add that dependency explicitly. + hibernate4-maven-plugin by default scans dependencies in the scope + compile. You can configure it to scan dependencies in other + scopes as well. But it scans only direct dependencies. Transitive + dependencies are not scanned for annotated classes. If some of your + annotated classes are hidden in a transitive dependency, you can simply + add that dependency explicitly. hibernate4-maven-plugin always needs a database-connection -- 2.20.1