8f91f3f9154b030a65172cea5a7fc30f23746456
[hibernate4-maven-plugin] / src / site / xhtml / debugging.xhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3  <head>
4  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5  </head>
6  <body>
7   <p>
8   If you are new to <code>hibernate4-maven-plugin</code>, in many cases, the
9   {Configuration-Method-Precedence} may be the source of configuration
10   errors.
11   To solve this problem, you should run maven with the debugging output
12   enabled.
13   For example, by executing:
14   </p>
15   <pre class="prettyprint linenums lang-html">
16 mvn -X compile hibernate4:export</pre>
17   <p>
18   (The <code>compile</code> might be necessary, because <code>hibernate4-maven-plugin</code>
19   has to scan the compiled classes for annotations!)
20   </p>
21   <p>
22   Unlike the majority of the maven-plugins, <code>hibernate4-maven-plugin</code> was
23   designed to give a good many hints, when debugging is enabled.
24   Because, if you do not know, what went wrong, you can't fix it!
25   </p>
26   <p>
27   <strong>But be warned:</strong> <code>hibernate4-maven-plugin</code> tends to be very chatty ;)
28   </p>
29  </body>
30 </html>