|
|
<?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">
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<groupId>com.manage</groupId>
|
|
|
<artifactId>power</artifactId>
|
|
|
<packaging>pom</packaging>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
<modules>
|
|
|
<module>power-dao</module>
|
|
|
<module>power-service</module>
|
|
|
<module>power-admin</module>
|
|
|
<module>power-foundaton</module>
|
|
|
</modules>
|
|
|
|
|
|
<properties>
|
|
|
<!-- begin 全局设置,被子工程继承 -->
|
|
|
<skipTest>true</skipTest>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
|
|
|
<!-- 跳过 必须依赖正式版本的检查 -->
|
|
|
<skipRequireRelease>true</skipRequireRelease>
|
|
|
<!-- begin 框架版本 -->
|
|
|
<framework.version>1.0.0</framework.version>
|
|
|
<!-- end -->
|
|
|
<!-- begin 其它第三方开源版本定义 -->
|
|
|
<jdk.version>1.8</jdk.version>
|
|
|
<spring.version>5.0.2.RELEASE</spring.version>
|
|
|
<aspectj.version>1.8.13</aspectj.version>
|
|
|
<aspectjrt.version>1.8.13</aspectjrt.version>
|
|
|
<mybatis.version>3.2.8</mybatis.version>
|
|
|
<mybatis.spring.version>1.2.2</mybatis.spring.version>
|
|
|
<pagehelper.version>5.1.6</pagehelper.version>
|
|
|
<mysql.version>5.1.32</mysql.version>
|
|
|
<junit.version>4.12</junit.version>
|
|
|
<slf4j.version>1.6.4</slf4j.version>
|
|
|
<json-lib.version>2.4</json-lib.version>
|
|
|
<jackson.version>2.9.4</jackson.version>
|
|
|
<druid.version>1.0.9</druid.version>
|
|
|
<httpclient.version>4.3.5</httpclient.version>
|
|
|
<jsp-api.version>2.0</jsp-api.version>
|
|
|
<servlet-api.version>2.5</servlet-api.version>
|
|
|
<jstl.version>1.2</jstl.version>
|
|
|
<commons-lang3.version>3.3.2</commons-lang3.version>
|
|
|
<commons-io.version>1.3.2</commons-io.version>
|
|
|
<commons-net.version>3.3</commons-net.version>
|
|
|
<cxf.version>3.1.8</cxf.version>
|
|
|
<webSocket.version>1.4.0</webSocket.version>
|
|
|
<javax.websocket-api.version>1.1</javax.websocket-api.version>
|
|
|
<taglibs-standard.version>1.1.2</taglibs-standard.version>
|
|
|
<fastjson.version>1.2.4</fastjson.version>
|
|
|
<apache-poi.version>3.11-beta2</apache-poi.version>
|
|
|
</properties>
|
|
|
|
|
|
<!-- maven依赖 -->
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>com.manage</groupId>
|
|
|
<artifactId>power-service</artifactId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.manage</groupId>
|
|
|
<artifactId>power-foundaton</artifactId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.manage</groupId>
|
|
|
<artifactId>power-dao</artifactId>
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
</dependency>
|
|
|
<!-- Spring -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-context-support</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-webmvc</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-jdbc</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-aspects</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
</dependency>
|
|
|
<!-- Apache工具组件 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
<version>${commons-lang3.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
<version>${commons-io.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>commons-net</groupId>
|
|
|
<artifactId>commons-net</artifactId>
|
|
|
<version>${commons-net.version}</version>
|
|
|
</dependency>
|
|
|
<!--json-->
|
|
|
<dependency>
|
|
|
<groupId>net.sf.json-lib</groupId>
|
|
|
<artifactId>json-lib</artifactId>
|
|
|
<version>${json-lib.version}</version>
|
|
|
<classifier>jdk15</classifier>
|
|
|
</dependency>
|
|
|
<!-- Jackson Json处理工具包 -->
|
|
|
<dependency>
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
<version>${jackson.version}</version>
|
|
|
</dependency>
|
|
|
<!-- httpclient -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
<artifactId>httpclient</artifactId>
|
|
|
<version>${httpclient.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 单元测试 -->
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
<version>${junit.version}</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<!-- 日志处理 -->
|
|
|
<dependency>
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
<version>${slf4j.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 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.pagehelper</groupId>
|
|
|
<artifactId>pagehelper</artifactId>
|
|
|
<version>${pagehelper.version}</version>
|
|
|
</dependency>
|
|
|
<!-- MySql -->
|
|
|
<dependency>
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
<version>${mysql.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 连接池 -->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>druid</artifactId>
|
|
|
<version>${druid.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>jstl</groupId>
|
|
|
<artifactId>jstl</artifactId>
|
|
|
<version>${jstl.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
<artifactId>servlet-api</artifactId>
|
|
|
<version>${servlet-api.version}</version>
|
|
|
<scope>provided</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
<artifactId>jsp-api</artifactId>
|
|
|
<version>${jsp-api.version}</version>
|
|
|
<scope>provided</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>taglibs</groupId>
|
|
|
<artifactId>standard</artifactId>
|
|
|
<version>${taglibs-standard.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
<version>${fastjson.version}</version>
|
|
|
</dependency>
|
|
|
<!--webService-->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.cxf</groupId>
|
|
|
<artifactId>cxf-rt-transports-http</artifactId>
|
|
|
<version>${cxf.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.cxf</groupId>
|
|
|
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
|
|
<version>${cxf.version}</version>
|
|
|
</dependency>
|
|
|
<!--webSocket-->
|
|
|
<dependency>
|
|
|
<groupId>org.java-websocket</groupId>
|
|
|
<artifactId>Java-WebSocket</artifactId>
|
|
|
<version>${webSocket.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>javax.websocket</groupId>
|
|
|
<artifactId>javax.websocket-api</artifactId>
|
|
|
<version>${javax.websocket-api.version}</version>
|
|
|
<scope>provided</scope>
|
|
|
</dependency>
|
|
|
<!--apache poi-->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
<artifactId>poi-scratchpad</artifactId>
|
|
|
<version>${apache-poi.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
<artifactId>poi-ooxml</artifactId>
|
|
|
<version>${apache-poi.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
<artifactId>poi-ooxml-schemas</artifactId>
|
|
|
<version>${apache-poi.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
|
<artifactId>poi-excelant</artifactId>
|
|
|
<version>${apache-poi.version}</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
</dependencyManagement>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<!-- 资源文件拷贝插件 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
<version>2.7</version>
|
|
|
<configuration>
|
|
|
<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><!-- 字符集编码 -->
|
|
|
<verbose>true</verbose>
|
|
|
<showWarnings>true</showWarnings>
|
|
|
<fork>true</fork><!-- 要使compilerVersion标签生效,还需要将fork设为true,用于明确表示编译版本配置的可用 -->
|
|
|
<executable><!-- path-to-javac --></executable><!-- 使用指定的javac命令,例如:<executable>${JAVA_1_4_HOME}/bin/javac</executable> -->
|
|
|
<!--<compilerVersion>1.3</compilerVersion>--><!-- 指定插件将使用的编译器的版本 -->
|
|
|
<meminitial>128m</meminitial><!-- 编译器使用的初始内存 -->
|
|
|
<maxmem>512m</maxmem><!-- 编译器使用的最大内存 -->
|
|
|
<!-- <compilerArgument>-verbose -bootclasspath ${java.home}\lib\rt.jar</compilerArgument> 这个选项用来传递编译器自身不包含但是却支持的参数选项 -->
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
<!-- <pluginManagement>
|
|
|
<!–<!– 配置Tomcat插件 –>–>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.tomcat.maven</groupId>
|
|
|
<artifactId>tomcat-maven-plugin</artifactId>
|
|
|
<version>2.2</version>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</pluginManagement>-->
|
|
|
</build>
|
|
|
|
|
|
|
|
|
</project> |