Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to execute Maven-Plugin multiple times
    primarykey
    data
    text
    <p>I have two databases i'd like to generate hbm2java to.</p> <pre><code>&lt;project&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;/project&gt; </code></pre> <p>Ok, if i run <code>mvn hibernate3:hbm2java</code> then it executes no execution!</p> <p>This is the Log:</p> <pre><code>[INFO] &gt;&gt;&gt; hibernate3-maven-plugin:2.2:hbm2java (default-cli) @ XXXXXXXXXXXXX &gt;&gt;&gt; [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ XXXXXXXXXXXXX --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 5 resources [INFO] [INFO] &lt;&lt;&lt; hibernate3-maven-plugin:2.2:hbm2java (default-cli) @ XXXXXXXXXXXXX &lt;&lt;&lt; [INFO] [INFO] --- hibernate3-maven-plugin:2.2:hbm2java (default-cli) @ XXXXXXXXXXXXX --- [INFO] using configuration task. 11:07:29,370 INFO org.hibernate.cfg.Environment - Hibernate 3.3.1.GA 11:07:29,376 INFO org.hibernate.cfg.Environment - hibernate.properties not found 11:07:29,381 INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist 11:07:29,387 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling [INFO] No hibernate configuration file loaded. [INFO] No hibernate properties file loaded. 11:07:29,464 INFO org.hibernate.tool.Version - Hibernate Tools 3.2.4.GA [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ </code></pre> <p>Any idea?</p>
    singulars
    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