Hi Albert,

I show an example of its usage on a blog I wrote:
http://zenoconsulting.wikidot.com/blog:8  -- I know that works.

Regards,
Davis

On Sat, Mar 14, 2009 at 8:56 PM, Albert Mendonca
<[email protected]> wrote:
>
>
> Johann,
>
> This plugin is giving me quite a tough time.... there doesn't seem to be any
> standard way of using it, some docs mention using <executions> and some
> plain <configuration>...however the following is how ive configured.. please
> let me know where im going wrong.. Thanks in advance :
>
> POM
>
> <plugin>
>                        <groupId>org.codehaus.mojo</groupId>
>                        <artifactId>hibernate3-maven-plugin</artifactId>
>                        <version>2.2</version>
>                        <configuration>
>                                <component>
>                                        <name>hbm2java</name>
>                                        
> <outputDirectory>/persistence/hibernate/model</outputDirectory>
>                                </component>
>                                <componentProperties>
>                                        <drop>false</drop>
>                                        <jdk5>true</jdk5>
>
> <configurationfile>/src/main/resources/hibernate.cfg.xml</configurationfile>
>                                </componentProperties>
>                                <hibernatetool></hibernatetool>
>                        </configuration>
>                </plugin>
>
>
> Output on debug mode :
>
> [DEBUG]  The following artifacts were filtered out for plugin:
> org.codehaus.mojo
> :hibernate3-maven-plugin:3.0-SNAPSHOT because they're already in the core of
> Mav
> en:
>
> org.apache.maven:maven-project:jar:2.0.4:runtime
> org.apache.maven:maven-plugin-api:jar:2.0.4:runtime
> org.apache.maven:maven-model:jar:2.0.4:runtime
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime
>
> These will use the artifact files already in the core ClassRealm instead, to
> all
> ow them to be included in PluginDescriptor.getArtifacts().
>
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] One or more required plugin parameters are invalid/missing for
> 'hibernate
> 3:hbm2java'
>
> [0] Inside the definition for plugin 'hibernate3-maven-plugin' specify the
> follo
> wing:
>
> <configuration>
>  ...
>  <hibernatetool>VALUE</hibernatetool>
> </configuration>
>
> -OR-
>
> on the command line, specify: '-Dhibernatetool=VALUE'
>
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring:
> org.c
> odehaus.mojo:hibernate3-maven-plugin. Reason: Invalid or missing parameters:
> [Mo
> jo parameter [name: 'hibernatetool'; alias: 'null']] for mojo:
> org.codehaus.mojo
> :hibernate3-maven-plugin:3.0-SNAPSHOT:hbm2java
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:587)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
> Goal(DefaultLifecycleExecutor.java:512)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:482)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:330)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:291)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:142)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.PluginParameterException: Error
> configuring:
> org.codehaus.mojo:hibernate3-maven-plugin. Reason: Invalid or missing
> parameters
> : [Mojo parameter [name: 'hibernatetool'; alias: 'null']] for mojo:
> org.codehaus
> .mojo:hibernate3-maven-plugin:3.0-SNAPSHOT:hbm2java
>        at
> org.apache.maven.plugin.DefaultPluginManager.checkRequiredParameters(
> DefaultPluginManager.java:1042)
>        at
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
> tPluginManager.java:659)
>        at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:429)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:558)
>        ... 16 more
>
>
> --
> View this message in context: 
> http://www.nabble.com/Hibernate3-plugin-issue---invalid-configuration-from-hbm2java-goal-tp14769094p22519020.html
> Sent from the mojo - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to