Hello Andrew Yep, those are meant to be inside the build element.
Regards Johann Reyes -----Original Message----- From: Andrew Leer [mailto:[EMAIL PROTECTED] Sent: Thursday, January 04, 2007 4:17 PM To: [email protected] Subject: RE: [mojo-user] hibernate3 plugin exception So I put it under build instead. >From: "Andrew Leer" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: RE: [mojo-user] hibernate3 plugin exception >Date: Thu, 04 Jan 2007 20:23:56 +0000 > >Johann, > >According to my XML parser (and Maven2)...the <extensions> element is not >allowed to have the project root element as it's parent... > >Thank you, > Andrew J. Leer > > >>From: "Johann Reyes" <[EMAIL PROTECTED]> >>Reply-To: [email protected] >>To: <[email protected]> >>Subject: RE: [mojo-user] hibernate3 plugin exception >>Date: Thu, 4 Jan 2007 14:17:24 -0500 >> >>Hello Andrew >> >>Can you try this: >> >> >><extensions> >> <extension> >> <groupId>hsqldb</groupId> >> <artifactId>hsqldb</artifactId> >> <version>1.7</version> >> </extension> >></extensions> >><plugins> >> <plugin> >> <groupId>org.codehaus.mojo</groupId> >> <artifactId>hibernate3-maven-plugin</artifactId> >> <version>2.0-SNAPSHOT</version> >> <configuration> >> <components> >> <component> >> <name>hbm2cfgxml</name> >> <outputdirectory>src/main/resources</outputdirectory> >> </component> >> </components> >> </configuration> >> </plugin> >></plugins> >> >> >>Regards >> >>Johann Reyes >> >>-----Original Message----- >>From: Andrew Leer [mailto:[EMAIL PROTECTED] >>Sent: Thursday, January 04, 2007 1:42 PM >>To: [email protected] >>Subject: RE: [mojo-user] hibernate3 plugin exception >> >>Johann, >> >>I have set it up (well for 1.0-SNAPSHOT anyway)... >>(see pom.xml snippet bellow) >> >>... >><plugins> >> <plugin> >> <groupId>org.codehaus.mojo</groupId> >> <artifactId>hibernate3-maven-plugin</artifactId> >> <version>1.0-SNAPSHOT</version> >> <configuration> >> <hibernate> >> >><configurationFile>/src/main/resources/hibernate.cfg.xml</configurationFil e> >> </hibernate> >> <outputDirectory> >> <hbm2cfgxml>src/main/resources</hbm2cfgxml> >> </outputDirectory> >> <extensions> >> <extension> >> <groupId>hsqldb</groupId> >> <artifactId>hsqldb</artifactId> >> <version>1.7</version> >> </extension> >> </extensions> >> </configuration> >> </plugin> >></plugins> >>... >> >>(However also note that I added it as a dependency as well...does that >>have >>any bearing on what happens?) >> >>Thank you, >> Andrew J. Leer >> >> >From: "Johann Reyes" <[EMAIL PROTECTED]> >> >Reply-To: [email protected] >> >To: <[email protected]> >> >Subject: RE: [mojo-user] hibernate3 plugin exception >> >Date: Thu, 4 Jan 2007 13:29:42 -0500 >> > >> >Hello Andrew >> > >> >Have you set up your database driver as an extension as per here: >> > >> >http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/usage.htm >>l >> > >> >Regards >> > >> >Johann Reyes >> > >> >-----Original Message----- >> >From: Andrew Leer [mailto:[EMAIL PROTECTED] >> >Sent: Thursday, January 04, 2007 12:46 PM >> >To: [email protected] >> >Subject: RE: [mojo-user] hibernate3 plugin exception >> > >> > >> >Okay updated it....to 2.0-SNAPSHOT (is this anywhere in the mojo docs?) >> > >> >Now I get a new error: >> > >> >Getting database metadata >> >No suitable driver >> >(this one doesn't seem as bad of an error) >> > >> >Thank you again, >> > Andrew J. Leer >> > >> > >From: "David Ryan" <[EMAIL PROTECTED]> >> > >Reply-To: [email protected] >> > >To: <[email protected]> >> > >Subject: RE: [mojo-user] hibernate3 plugin exception >> > >Date: Thu, 4 Jan 2007 08:04:25 -0800 >> > > >> > >This is the 2.0-SNAPSHOT >> > > >> > > >> > > >> > >Dave >> > > >> > > >> > > >> > > >> > > >> > >From: Johann Reyes [mailto:[EMAIL PROTECTED] >> > >Sent: Thursday, January 04, 2007 5:42 AM >> > >To: [email protected] >> > >Subject: RE: [mojo-user] hibernate3 plugin exception >> > > >> > > >> > > >> > >Hello David >> > > >> > > >> > > >> > >What version of the plugin are you using? Right now the recommended >> >version >> > >is 2.0-snapshot >> > > >> > > >> > > >> > >Regards >> > > >> > > >> > > >> > >Johann Reyes >> > > >> > > >> > > >> > > _____ >> > > >> > >From: David Ryan [mailto:[EMAIL PROTECTED] >> > >Sent: Thursday, January 04, 2007 2:10 AM >> > >To: [email protected] >> > >Subject: [mojo-user] hibernate3 plugin exception >> > > >> > > >> > > >> > >C:\HelloWorldRev>mvn >> > > >> > >[INFO] Scanning for projects... >> > > >> > >[INFO] >> > >> >--------------------------------------------------------------------------- >> >- >> > > >> > >[INFO] Building HelloWorld >> > > >> > >[INFO] task-segment: [package] >> > > >> > >[INFO] >> > >> >--------------------------------------------------------------------------- >> >- >> > > >> > >[INFO] [resources:resources] >> > > >> > >[INFO] Using default encoding to copy filtered resources. >> > > >> > >[WARNING] While downloading ehcache:ehcache:1.2.3 >> > > >> > > This artifact has been relocated to net.sf.ehcache:ehcache:1.2.3. >> > > >> > > >> > > >> > > >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/javassist/3.3/javassist-3.3.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >http://repo1.maven.org/maven2/org/hibernate/jaas/UNK/jaas-UNK.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/oscache/2.1/oscache-2.1.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/asm-attrs/UNK/asm-attrs-UNK.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >http://repo1.maven.org/maven2/org/hibernate/asm/UNK/asm-UNK.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.2.1.G >> >A >> > >/hibernate-entitymanager-3.2.1.GA.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/checkstyle-all/UNK/checkstyle-a >> >l >> > >l-UNK.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/lucene/2.0.0/lucene-2.0.0.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/hibernate-annotations/3.2.1.GA/ >> >h >> > >ibernate-annotations-3.2.1.GA.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/cleanimports/UNK/cleanimports-U >> >N >> > >K.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/hibernate/3.2.1.GA/hibernate-3. >> >2 >> > >.1.GA.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/syndiag/2.0/syndiag-2.0.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/xml-apis/UNK/xml-apis-UNK.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/jdbc-stdext/2.0/jdbc-stdext-2.0 >> >. >> > >pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/jacc/1_0-fr/jacc-1_0-fr.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >http://repo1.maven.org/maven2/org/hibernate/jta/UNK/jta-UNK.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >Downloading: >> > >> >http://repo1.maven.org/maven2/org/hibernate/connector/UNK/connector-UNK.pom >> > > >> > >[WARNING] Unable to get resource from repository central >> > >(http://repo1.maven.org/maven2) >> > > >> > >[INFO] [compiler:compile] >> > > >> > >[INFO] Nothing to compile - all classes are up to date >> > > >> > >[INFO] Preparing hibernate3:hbm2hbmxml >> > > >> > >[WARNING] Removing: hbm2hbmxml from forked lifecycle, to prevent >> >recursive >> > >invocation. >> > > >> > >[INFO] No goals needed for project - skipping >> > > >> > >[INFO] [hibernate3:hbm2hbmxml {execution: default}] >> > > >> > >[INFO] using jdbcconfiguration task. >> > > >> > >[INFO] Configuration XML file loaded: >> > >C:\HelloWorldRev\src\main\resources\hibernate.cfg.xml >> > > >> > >[INFO] Configuration Properties file loaded: >> > >C:\HelloWorldRev\jdbc.properties >> > > >> > >[INFO] >> > >> >------------------------------------------------------------------------ >> > > >> > >[ERROR] FATAL ERROR >> > > >> > >[INFO] >> > >> >------------------------------------------------------------------------ >> > > >> > >[INFO] Error while reading column meta data for >> > >FTEUSER.BIN$+soXASMlSUGfOHVm9B/n5g==$0 >> > > >> > >ORA-01424: missing or illegal character following the escape character >> > > >> > > >> > > >> > >[INFO] >> > >> >------------------------------------------------------------------------ >> > > >> > >[INFO] Trace >> > > >> > >org.hibernate.exception.DataException: Error while reading column meta >> >data >> > >for FTEUSER.BIN$+soXASMlSUGfOHVm9B/n5g==$0 >> > > >> > > at >> > >> >org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77 >> >) >> > > >> > > at >> > >> >org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getColumns(JDBCMetaDat >> >a >> > >Dialect.java:133) >> > > >> > > at >> > >> >org.hibernate.cfg.reveng.JDBCReader.processBasicColumns(JDBCReader.java:525 >> >) >> > > >> > > at >> > >> >org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:78) >> > > >> > > at >> > >> >org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:807) >> > > >> > > at >> > >org.hibernate.cfg.JDBCBinder.readDatabaseSchema(JDBCBinder.java:116) >> > > >> > > at >> > >org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:88) >> > > >> > > at >> > >> >org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfig >> >u >> > >ration.java:40) >> > > >> > > at >> > >> >org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doCon >> >f >> > >iguration(JDBCComponentConfiguration.java:65) >> > > >> > > >> > > >> > > at >> > >> >org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.g >> >e >> > >tConfiguration(AbstractComponentConfiguration >> > > >> > >.java:37) >> > > >> > > at >> > >> >org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(Hibern >> >a >> > >teExporterMojo.java:172) >> > > >> > > at >> > >> >org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExpor >> >t >> > >erMojo.java:227) >> > > >> > > at >> > >> >org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporte >> >r >> > >Mojo.java:133) >> > > >> > > at >> > >> >org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManag >> >e >> > >r.java:412) >> > > >> > > at >> > >> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif >> >e >> > >cycleExecutor.java:534) >> > > >> > > at >> > >> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycl >> >e >> > >(DefaultLifecycleExecutor.java:475) >> > > >> > > at >> > >> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLife >> >c >> > >ycleExecutor.java:454) >> > > >> > > at >> > >> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai >> >l >> > >ures(DefaultLifecycleExecutor.java:306) >> > > >> > > at >> > >> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Def >> >a >> > >ultLifecycleExecutor.java:273) >> > > >> > > at >> > >> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycl >> >e >> > >Executor.java:140) >> > > >> > > at >> >org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) >> > > >> > > at >>org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) >> > > >> > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) >> > > >> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>Method) >> > > >> > > at >> > >> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 >> >9 >> > >) >> > > >> > > at >> > >> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp >> >l >> > >.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.sql.SQLException: ORA-01424: missing or illegal >>character >> > >following the escape character >> > > >> > > >> > > >> > > at >> > >> >oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) >> > > >> > > at >>oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) >> > > >> > > at >>oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) >> > > >> > > at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743) >> > > >> > > at >> > >> >oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:2 >> >1 >> > >6) >> > > >> > > at >> > >> >oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement >> >. >> > >java:955) >> > > >> > > at >> > >> >oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.jav >> >a >> > >:1061) >> > > >> > > at >> > >> >oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedSta >> >t >> > >ement.java:839) >> > > >> > > at >> > >> >oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.jav >> >a >> > >:1133) >> > > >> > > at >> > >> >oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedSt >> >a >> > >tement.java:3285) >> > > >> > > at >> > >> >oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedState >> >m >> > >ent.java:3329) >> > > >> > > at >> > >> >oracle.jdbc.driver.OracleDatabaseMetaData.getColumns(OracleDatabaseMetaData >> >. >> > >java:262) >> > > >> > > at >> > >> >org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getColumns(JDBCMetaDat >> >a >> > >Dialect.java:111) >> > > >> > > ... 29 more >> > > >> > >[INFO] >> > >> >------------------------------------------------------------------------ >> > > >> > >[INFO] Total time: 11 seconds >> > > >> > >[INFO] Finished at: Wed Jan 03 23:03:20 PST 2007 >> > > >> > >[INFO] Final Memory: 5M/10M >> > > >> > >[INFO] >> > >> >------------------------------------------------------------------------ >> > > >> > > >> > > >> > >C:\HelloWorldRev> >> > > >> > > >> > > >> > >Dave Ryan >> > > >> > > >> > > >> > >> >_________________________________________________________________ >> >Fixing up the home? Live Search can help >> >http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale= >>e >> >n-US&source=hmemailtaglinenov06&FORM=WLMTAG >> > >> > >> >--------------------------------------------------------------------- >> >To unsubscribe from this list please visit: >> > >> > http://xircles.codehaus.org/manage_email >> > >> > >> > >> > >> >--------------------------------------------------------------------- >> >To unsubscribe from this list please visit: >> > >> > http://xircles.codehaus.org/manage_email >> > >> >>_________________________________________________________________ >>Fixing up the home? Live Search can help >>http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale =e >>n-US&source=hmemailtaglinenov06&FORM=WLMTAG >> >> >>--------------------------------------------------------------------- >>To unsubscribe from this list please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe from this list please visit: >> >> http://xircles.codehaus.org/manage_email >> > >_________________________________________________________________ >Your Hotmail address already works to sign into Windows Live Messenger! Get >it now >http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://ge t.live.com/messenger/overview > > >--------------------------------------------------------------------- >To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > _________________________________________________________________ Get FREE Web site and company branded e-mail from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
