Improved documentation of the dependency-scanning on the pitfalls-page
[hibernate4-maven-plugin] / src / site / apt / pitfalls.apt
index 33c40cf..355e369 100644 (file)
@@ -4,6 +4,15 @@
   Kai Moritz
   ---
 
+Annotated classes in dependencies are not found.
+
+  hibernate4-maven-plugin by default scans dependencies in the scope
+  <code>compile</code>. 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
 
   The default-configuration uses the EXPORT-target of the SchemaExport-Tool.