Created
January 23, 2014 15:46
-
-
Save l-gu/8580842 to your computer and use it in GitHub Desktop.
POM.XML for JPA 2 / Hibernate 4.2
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>to.be.defined</groupId> | |
<artifactId>to.be.defined</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<java.version>1.6</java.version> | |
<junit.version>4.11</junit.version> | |
<slf4j.version>1.7.5</slf4j.version> | |
</properties> | |
<dependencies> | |
<!-- Add the JDBC driver here --> | |
<dependency> | |
<groupId>org.apache.derby</groupId> | |
<artifactId>derbyclient</artifactId> | |
<version>10.9.1.0</version> | |
</dependency> | |
<!-- Examples | |
<dependency> | |
<groupId>postgresql</groupId> | |
<artifactId>postgresql</artifactId> | |
<version>9.1-901-1.jdbc4</version> | |
</dependency> | |
--> | |
<dependency> | |
<groupId>org.hibernate.javax.persistence</groupId> | |
<artifactId>hibernate-jpa-2.0-api</artifactId> <!-- javax.persistence.* --> | |
<version>1.0.1.Final</version> | |
</dependency> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-entitymanager</artifactId> <!-- org.hibernate.ejb.* --> | |
<version>4.2.2.Final</version> | |
</dependency> | |
<!-- Logging : SLF4J is used by Hibernate --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
<version>${slf4j.version}</version> | |
</dependency> | |
<!-- SLF4J Simple implementation : sends log messages to the console --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-simple</artifactId> | |
<version>${slf4j.version}</version> | |
</dependency> | |
<!-- SLF4J NOP (no operation) implementation | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-nop</artifactId> | |
<version>${slf4j.version}</version> | |
</dependency> | |
--> | |
<!-- Dependencies for Unit Testing --> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit-dep</artifactId> | |
<version>${junit.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>${junit.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<!-- | |
<dependency> | |
<groupId>org.hsqldb</groupId> | |
<artifactId>hsqldb</artifactId> | |
<version>2.2.8</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.dbunit</groupId> | |
<artifactId>dbunit</artifactId> | |
<version>2.4.9</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.mockito</groupId> | |
<artifactId>mockito-all</artifactId> | |
<version>1.9.5</version> | |
<scope>test</scope> | |
</dependency> | |
--> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.5.1</version> | |
<configuration> | |
<source>${java.version}</source> | |
<target>${java.version}</target> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment