Maven 으로 Hibernate 프로젝트 를 만 들 때 pom. xml 설정

14280 단어
<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.0modelVersion>
  <groupId>com.tang.demogroupId>
  <artifactId>maven-hibernate-demoartifactId>
  <packaging>warpackaging>
  <version>0.0.1-SNAPSHOTversion>
  <name>maven-hibernate-demo Maven Webappname>
  <url>http://maven.apache.orgurl>
  <dependencies>
    <dependency>
      <groupId>junitgroupId>
      <artifactId>junitartifactId>
      <version>4.8.2version>
      <scope>testscope>
    dependency>
    
    <dependency>
        <groupId>com.oraclegroupId>
        <artifactId>ojdbc14artifactId>
        <version>10.2.0.4.0version>
    dependency>
    
    <dependency>
        <groupId>org.hibernategroupId>
        <artifactId>hibernate-coreartifactId>
        <version>3.6.5.Finalversion>
    dependency>
    <dependency>
        <groupId>javassistgroupId>
        <artifactId>javassistartifactId>
        <version>3.12.0.GAversion>
    dependency>
    <dependency>
        <groupId>antlrgroupId>
        <artifactId>antlrartifactId>
        <version>2.7.6version>
    dependency>
    <dependency>
        <groupId>commons-collectionsgroupId>
        <artifactId>commons-collectionsartifactId>
        <version>3.1version>
    dependency>
    <dependency>
        <groupId>dom4jgroupId>
        <artifactId>dom4jartifactId>
        <version>1.6.1version>
    dependency>
    <dependency>
        <groupId>javax.transactiongroupId>
        <artifactId>jtaartifactId>
        <version>1.1version>
    dependency>
    <dependency>
        <groupId>org.slf4jgroupId>
        <artifactId>slf4j-apiartifactId>
        <version>1.6.1version>
    dependency>
    <dependency>
        <groupId>org.hibernate.javax.persistencegroupId>
        <artifactId>hibernate-jpa-2.0-apiartifactId>
        <version>1.0.0.Finalversion>
    dependency>
  dependencies>
  <build>
    <finalName>maven-hibernate-demofinalName>
  build>
project>

좋은 웹페이지 즐겨찾기