Thanks Matt.

I will try both.

Regards,
Abe



On 8/9/07, Matt Raible <[EMAIL PROTECTED]> wrote:
>
> You also might try upgrading the hibernate3-maven-plugin to version
> 2.0-alpha-2.
>
> Matt
>
> On 8/9/07, Matt Raible <[EMAIL PROTECTED]> wrote:
> > If you look at the hibernate3-maven-plugin, you can change the <skip>
> > value to key off another parameter or simply change it to true in
> > order to not generate the database tables.
> >
> > Matt
> >
> > On 8/9/07, Developer Abe <[EMAIL PROTECTED]> wrote:
> > > Silly me.
> > >
> > > I was getting the Hibernate exception and was using the
> > > -Dmaven.test.skip=true to get around it.
> > >
> > > But this leads to another question.
> > >
> > > when I run "mvn site"
> > >
> > > How do I get around the following (It looks like a chicken and egg
> problem).
> > >
> > >
> > >
> > > [INFO] Preparing hibernate3:hbm2ddl
> > > [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent
> recursive
> > > invocati
> > > on.
> > > [INFO] [resources:resources]
> > > [INFO] Using default encoding to copy filtered resources.
> > > [INFO] [hibernate3:hbm2ddl {execution: default}]
> > > [INFO] Configuration XML file loaded:
> > > C:\Source\test\trunk\core\src\main\resourc
> > > es\hibernate.cfg.xml
> > > [INFO] Configuration XML file loaded:
> > > C:\Source\test\trunk\core\src\main\resourc
> > > es\hibernate.cfg.xml
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] FATAL ERROR
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Unable to load class declared as <mapping class="
> > > com.intuit.security.keym
> > > anager.model.KeyMetadata"/> in the configuration:
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Trace
> > > org.hibernate.MappingException: Unable to load class declared as
> <mapping
> > > class=
> > > "com.intuit.security.keymanager.model.KeyMetadata"/> in the
> > > configuration:
> > >         at
> > > org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
> > > ionConfiguration.java:545)
> > >         at
> > > org.hibernate.cfg.Configuration.parseSessionFactory
> > > (Configuration.jav
> > > a:1479)
> > >         at
> > > org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1458)
> > >         at
> > > org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1432)
> > >         at org.hibernate.cfg.Configuration.configure
> > > (Configuration.java:1386)
> > >         at
> > > org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura
> > > tion.doConfiguration(AbstractComponentConfiguration.java:74)
> > >         at
> > > org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura
> > > tion.getConfiguration(AbstractComponentConfiguration.java:37)
> > >         at
> > > org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H
> > > bm2DDLExporterMojo.java:87)
> > >         at
> > > org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute
> > > (HibernateE
> > > xporterMojo.java:139)
> > >         at
> > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> > > nManager.java:443)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> > > (Defa
> > > ultLifecycleExecutor.java:539)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> > > fecycle(DefaultLifecycleExecutor.java:480)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
> > > cle(DefaultLifecycleExecutor.java:896)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def
> > > aultLifecycleExecutor.java:739)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> > > (Defa
> > > ultLifecycleExecutor.java:530)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> > > fecycle(DefaultLifecycleExecutor.java:480)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > > (Defau
> > > ltLifecycleExecutor.java:459)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> > > dleFailures(DefaultLifecycleExecutor.java:311)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> > > ts(DefaultLifecycleExecutor.java:278)
> > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> > > fecycleExecutor.java:143)
> > >         at
> > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> > > :334)
> > >         at
> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > >         at
> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > >         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: java.lang.ClassNotFoundException:
> > > com.intuit.security.keymanager.mode
> > > l.KeyMetadata
> > >         at java.net.URLClassLoader$1.run(URLClassLoader.java :200)
> > >         at
> > > java.security.AccessController.doPrivileged(Native Method)
> > >         at
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > >          at
> > > org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
> > > oader.java:195)
> > >         at
> > > org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
> > > m.java:255)
> > >         at
> > > org.codehaus.classworlds.DefaultClassRealm.loadClass
> > > (DefaultClassReal
> > > m.java:274)
> > >         at
> > > org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
> > > java:214)
> > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > >         at java.lang.ClassLoader.loadClassInternal
> > > (ClassLoader.java:319)
> > >         at java.lang.Class.forName0(Native Method)
> > >         at java.lang.Class.forName(Class.java:164)
> > >         at
> > > org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
> > >
> > >         at
> > > org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
> > > ionConfiguration.java:542)
> > >         ... 30 more
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >  [INFO] Total time: 1 minute 3 seconds
> > > [INFO] Finished at: Thu Aug 09 14:01:45 PDT 2007
> > > [INFO] Final Memory: 36M/69M
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > >
> > > The work around was to set -Dmaven.test.skip=true.
> > >
> > > Thanks Again,
> > > Abe
> > >
> > >
> > > On 8/9/07, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I don't believe you want to skip the tests to find out test
> coverage. ;-)
> > > >
> > > > On 8/9/07, Developer Abe < [EMAIL PROTECTED]> wrote:
> > > > > I was wondering if any one else if having data in the reports
> generated
> > > by
> > > > > checkstyle and cobertura.
> > > > >
> > > > > I generate the reports with
> > > > >
> > > > > mvn -Dmaven.test.skip=true site
> > > > >
> > > > > Regards,
> > > > > Abe
> > > >
> > > >
> > > > --
> > > > http://raibledesigns.com
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > http://raibledesigns.com
> >
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to