Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, i cant seperate the execution of hbm2java via the lifecycle.</p> <p>I have a solution using a custom profile "generate":</p> <pre><code>&lt;project&gt; &lt;profiles&gt; &lt;profile&gt; &lt;id&gt;generate&lt;/id&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;hibernate3-maven-plugin&lt;/artifactId&gt; &lt;version&gt;2.2&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;db1&lt;/id&gt; &lt;configuration&gt; &lt;components&gt; &lt;component&gt; &lt;name&gt;hbm2java&lt;/name&gt; ... &lt;/component&gt; &lt;/components&gt; &lt;componentProperties&gt; ... &lt;configurationfile&gt;.../hibernate1.cfg.xml&lt;/configurationfile&gt; &lt;/componentProperties&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;db2&lt;/id&gt; &lt;configuration&gt; &lt;components&gt; &lt;component&gt; &lt;name&gt;hbm2java&lt;/name&gt; ... &lt;/component&gt; &lt;/components&gt; &lt;componentProperties&gt; ... &lt;configurationfile&gt;.../hibernate2.cfg.xml&lt;/configurationfile&gt; &lt;/componentProperties&gt; &lt;/execution&gt; &lt;/executions&gt; ... &lt;/plugin&gt; ... &lt;/plugins&gt; &lt;/build&gt; &lt;/profile&gt; &lt;/profiles&gt; ... &lt;/project&gt; </code></pre> <p>Now i need to execute 3 different executions: </p> <ol> <li><code>mvn install -Dmaven.test.skip=true</code> compile the reverse-engineer-strategy</li> <li><code>mvn compile -P generate</code> generate the classes </li> <li><code>mvn test</code> test the unit-tests</li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload