|
|
<?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/xsd/maven-4.0.0.xsd">
|
|
|
<parent>
|
|
|
<artifactId>power</artifactId>
|
|
|
<groupId>com.manage</groupId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
</parent>
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<artifactId>power-dao</artifactId>
|
|
|
<properties>
|
|
|
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
</properties>
|
|
|
<dependencies>
|
|
|
<!-- Mybatis -->
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
<artifactId>mybatis</artifactId>
|
|
|
<version>${mybatis.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
<artifactId>mybatis-spring</artifactId>
|
|
|
<version>${mybatis.spring.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.github.miemiedev</groupId>
|
|
|
<artifactId>mybatis-paginator</artifactId>
|
|
|
<version>${mybatis.paginator.version}</version>
|
|
|
</dependency>
|
|
|
<!-- MySql -->
|
|
|
<dependency>
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
<version>${mysql.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 引入pageHelper分页插件 -->
|
|
|
<dependency>
|
|
|
<groupId>com.github.pagehelper</groupId>
|
|
|
<artifactId>pagehelper</artifactId>
|
|
|
<version>5.0.0</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-jdbc</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-webmvc</artifactId>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-tx</artifactId>
|
|
|
<version>4.3.7.RELEASE</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.mchange</groupId>
|
|
|
<artifactId>c3p0</artifactId>
|
|
|
<version>${c3p0.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
<version>${junit.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 日志处理 -->
|
|
|
<dependency>
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
<!--apache poi-->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
<artifactId>poi-scratchpad</artifactId>
|
|
|
<version>3.11-beta2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
<artifactId>poi-ooxml</artifactId>
|
|
|
<version>3.11-beta2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
<artifactId>poi-ooxml-schemas</artifactId>
|
|
|
<version>3.11-beta2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
<artifactId>poi-excelant</artifactId>
|
|
|
<version>3.11-beta2</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
<finalName>power-dao-1.0-SNAPSHOT</finalName>
|
|
|
<defaultGoal>compile</defaultGoal>
|
|
|
<plugins>
|
|
|
<!-- 资源文件拷贝插件 -->
|
|
|
<!-- java编译插件 -->
|
|
|
<!--<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<version>3.2</version>
|
|
|
<configuration>
|
|
|
<source>1.8</source>
|
|
|
<target>1.8</target>
|
|
|
<encoding>UTF-8</encoding>
|
|
|
</configuration>
|
|
|
</plugin>-->
|
|
|
<plugin>
|
|
|
<!-- 指定maven编译的jdk版本,如果不指定,maven3默认用jdk 1.5 maven2默认用jdk1.3 -->
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<version>3.1</version>
|
|
|
<configuration>
|
|
|
<!-- 一般而言,target与source是保持一致的,但是,有时候为了让程序能在其他版本的jdk中运行(对于低版本目标jdk,源代码中不能使用低版本jdk中不支持的语法),会存在target不同于source的情况 -->
|
|
|
<source>1.8</source> <!-- 源代码使用的JDK版本 -->
|
|
|
<target>1.8</target> <!-- 需要生成的目标class文件的编译版本 -->
|
|
|
<encoding>UTF-8</encoding><!-- 字符集编码 -->
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
<!-- 配置Tomcat插件 -->
|
|
|
<!-- <plugin>
|
|
|
<groupId>org.apache.tomcat.maven</groupId>
|
|
|
<artifactId>tomcat7-maven-plugin</artifactId>
|
|
|
<version>2.2</version>
|
|
|
<configuration>
|
|
|
<port>8080</port>
|
|
|
<path>/</path>
|
|
|
</configuration>
|
|
|
</plugin>-->
|
|
|
<!-- mybatis-generator自动生成代码插件 -->
|
|
|
<!--<plugin>
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
|
<version>1.3.5</version>
|
|
|
<configuration>
|
|
|
<verbose>true</verbose>
|
|
|
<overwrite>false</overwrite>
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<id>Generate MyBatis Artifacts</id>
|
|
|
<goals>
|
|
|
<goal>generate</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
<version>${mysql.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
<artifactId>mybatis-generator-core</artifactId>
|
|
|
<version>1.3.5</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
</plugin>-->
|
|
|
</plugins>
|
|
|
<resources>
|
|
|
<resource>
|
|
|
<directory>src/main/java</directory>
|
|
|
<includes>
|
|
|
<include>**/*.properties</include>
|
|
|
<include>**/*.xml</include>
|
|
|
</includes>
|
|
|
<filtering>false</filtering>
|
|
|
</resource>
|
|
|
<resource>
|
|
|
<directory>src/main/resources</directory>
|
|
|
<includes>
|
|
|
<include>**/*.xml</include>
|
|
|
<include>**/*.properties</include>
|
|
|
</includes>
|
|
|
<filtering>false</filtering>
|
|
|
</resource>
|
|
|
</resources>
|
|
|
</build>
|
|
|
</project>
|