See this page on how to work with Eclipse GIT repositories. To clone the Teneo git repository execute this action: The example project (.hibernate.examples) can be found in git here. This means that your pom files should list the EMF, commons-logging and hibernate jar file as dependencies. The Teneo pom files do not define explicit dependencies. Teneo and related EMF jar files are published in central maven and in the sonatype-snapshot repository. You can find them in maven central or you can download directly from their respective websites.
You can download these files from the plugins section on the update site using your web browser, or you can use Maven (see below): jdbc Usage in a Web Container - Mavenįor usage within a web container the following jar files are required. hibernate bundle -version = "3.3.2" ,Ĭom. As an example: these are the dependendencies set in the examples project: This can be solved by explicitly declaring the dependency in the MANIFEST.MF of your test or model project. This means that the import-package dependencies are not resolved and ClassNotFoundExceptions are thrown. When running junit testcases as normal Java applications or standard junit tests then there is no OSGI environment which takes care of resolving these import-packages. The Teneo and Hibernate plugins declare dependencies using import-packages. Teneo, import-packages and ClassNotFoundException when running junit testcases Note that also other Eclipse-BuddyPolicy settings can be used (and can make sense in production environments) but the 'dependent' setting is the safest one. This is required otherwise the Hibernate libraries can not find your model classes when performing runtime class enhancement. If you want to make your own Hibernate/library plugin there is one specific setting which needs to be set in your plugin: make sure to add the following line to the MANIFEST.MF of the Hibernate/libraries plugin you create: The EMF update site, select the EMF/XSD SDK:
Note: update site urls in the screenshots below maybe outdated, use the update site urls listed above. The following update sites are no longer available: Teneo is delivered in the following versions:
Usage in Eclipse/OSGI: download and install using the update manager Plugins and dependencies, update site locations Teneo provide update sites with the required dependencies (see below for the correct update site depending on your version). Some dependencies can not be downloaded from because of licensing differences. To run Teneo you need the following software: This page also describes where to find the example projects used in the tutorials in the wiki. The installation method for Teneo depends on the target environment(Eclipse/OSGI or web container).
2.3 Teneo, import-packages and ClassNotFoundException when running junit testcases.2.1 Plugins and dependencies, update site locations.2 Usage in Eclipse/OSGI: download and install using the update manager.