Created
April 19, 2015 08:00
-
-
Save lotabout/34566cb1f2d2038c55e1 to your computer and use it in GitHub Desktop.
example pom.xml for hibernate3-maven-plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.mkyong.common</groupId> | |
<artifactId>Hibernate</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>Hibernate</name> | |
<url>http://maven.apache.org</url> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>3.8.1</version> | |
<scope>test</scope> | |
</dependency> | |
<!-- MySQL database driver --> | |
<dependency> | |
<groupId>mysql</groupId> | |
<artifactId>mysql-connector-java</artifactId> | |
<version>5.1.9</version> | |
</dependency> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-core</artifactId> | |
<version>3.6.3.Final</version> | |
</dependency> | |
<dependency> | |
<groupId>javassist</groupId> | |
<artifactId>javassist</artifactId> | |
<version>3.12.1.GA</version> | |
</dependency> | |
<dependency> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
<version>1.2</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.2.1</version> | |
<configuration> | |
<mainClass>com.mkyong.common.App</mainClass> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>hibernate3-maven-plugin</artifactId> | |
<version>3.0</version> | |
<configuration> | |
<hibernatetool | |
destdir="${project.build.sourceDirectory}"> | |
<classpath> | |
<path location="${project.build.sourceDirectory}/classes"/> | |
</classpath> | |
<!-- <configuration configurationfile="src/main/resources/hibernate.cfg.xml"/> --> | |
<jdbcconfiguration | |
packagename="com.mkyong.dto" | |
revengfile="src/main/resources/reveng.xml" /> | |
<hbm2java jdk5="true" ejb3="true"/> | |
<hbm2cfgxml ejb3="true" destdir="${basedir}/src/main/resources" /> | |
</hibernatetool> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-core</artifactId> | |
<version>3.3.2.GA</version> | |
</dependency> | |
<dependency | |
> | |
<groupId>cglib</groupId> | |
<artifactId>cglib-nodep</artifactId> | |
<version>2.2.2</version> | |
</dependency> | |
<dependency> | |
<groupId>mysql</groupId> | |
<artifactId>mysql-connector-java</artifactId> | |
<version>5.1.9</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment