...
- Maven 2.0.9 to setup the projects,
- Eclipse Ganymede 3.4.x,
- Maven eclipse plugin,
- Apache Felix Karaf 1.4.0,
- Dependencies (= jars) used by the tutorial will be downloaded (if not available locally) by Maven
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.apache.camel.example</groupId> <artifactId>reportincident.db</artifactId> <packaging>jar</packaging> <name>Report Incident DB </name> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> (1) <groupId>org.apache.camel.example</groupId> <artifactId>reportincident.model</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> <build> <plugins> <!-- Hibernate plugin --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2.2</version> <configuration> <components> <component> <name>hbm2ddl</name> </component> </components> <componentProperties> <drop>true</drop> <create>true</create> <format>true</format> <configurationfile>/src/config/hibernate.cfg.xml</configurationfile> <outputfilename>db_reportincident_create_hsqldb.sql</outputfilename> </componentProperties> </configuration> <dependencies> <dependency> (2) <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.6<8</version> </dependency> </dependencies> <executions> <execution> <phase>process-classes</phase> <goals> <goal>hbm2ddl</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> |
...