[smartweb-user] [registry] Issues Installing jar in Maven Repo
Brought to you by:
rlogiacco
From: Sébastien LE C. <sl...@ya...> - 2008-05-25 16:50:59
|
Hi All, I have had some issues trying to install registry into my (local) maven repository, and I thought I might share them with you to find out whether I've been doing something wrong. - First, I had to change the pom file to point onto hibernate-registry.hcf.xml, as the hibernate.hcf.xml was not existing; - I also had to change the DTD in that hibernate-registry.hcf.xml file, as I was getting the following error when running "mvn install": "Don't use old DTDs, read the Hibernate 3.x Migration Guide!" - Then, I was getting the following error when trying to install the registry jar: 13:10:41,949 INFO org.hibernate.cfg.Configuration - Reading mappings from resource: net/smartlab/web/registry/Entry.hbm.xml 13:10:42,076 ERROR org.hibernate.util.XMLHelper - Error parsing XML: XML InputStream(185) The content of element type "set" is incomplete, it must match "(meta*,subselect?,cache?,synchronize*,comment?,key,(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)". [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Could not parse mapping document from resource net/smartlab/web/registry/Entry.hbm.xml After a bit of investigation, it turned out that one of the "set" definitions in that file was empty. I had to tweak the Hibernate configuration (and in the process I got the opportunity to curse maven once again). I'm attaching the changes I've carried out on the project to finally get it to install correctly (though not being familiar with it, I am not sure whether the Hibernate changes I've made suit the db schema). I'm also attaching smartweb-registry.jar.hcf "as is", because despite having set its Subversion mime type to text/xml (as shown in patch), it wouldn't give me a diff. I'd be interested to know whether you've ever had that problem (the fact that I can't diff that file). Anyway, did I miss something in that module? Regards, Sébastien. __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail |