hibernate-Maven

1.创建Maven 

2.创建Maven工程

3.然后一直下一步

4.创建成功后Maven

5.下载jra包

 //hibernate
    <dependencies>
      <dependency>
          <groupId>org.hibernate</groupId>
          <artifactId>hibernate-core</artifactId>
          <version>5.0.4.Final</version>
      </dependency>

  //连接oracle
      <dependency>
          <groupId>com.oracle</groupId>
          <artifactId>ojdbc6</artifactId>
          <version>11.2.0.1.0</version>
      </dependency>

      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>RELEASE</version>
      </dependency>
      //jta
      <dependency>
          <groupId>javax.transaction</groupId>
          <artifactId>jta</artifactId>
          <version>1.1</version>
      </dependency>
 <!--mysql数据库驱动-->
        <dependency>
            <groupId>org.wisdom-framework</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.34_1</version>
        </dependency>

6.配置Maven

 

7.在settings配置

8.jra包下载地址

9.配置环境变量与安装Maven

1.

 

2.

 

3.

 

posted @ 2017-01-16 12:24  时间&amp;煮雨  阅读(165)  评论(0编辑  收藏  举报