|
|
<?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 其它第三方开源版本定义 -->
|
|
|
<junit.version>4.12</junit.version>
|
|
|
<jdk.version>1.8</jdk.version>
|
|
|
<spring.version>5.0.2.RELEASE</spring.version>
|
|
|
<servlet.version>2.4</servlet.version>
|
|
|
<jsp.version>2.1</jsp.version>
|
|
|
<jstl.version>1.2</jstl.version>
|
|
|
<mybatis.version>3.4.6</mybatis.version>
|
|
|
<mybatis.spring.version>1.3.2</mybatis.spring.version>
|
|
|
<mysql.version>8.0.11</mysql.version>
|
|
|
<!--<mysql.version>5.1.32</mysql.version>-->
|
|
|
<slf4j.version>1.6.4</slf4j.version>
|
|
|
<jackson.version>2.9.4</jackson.version>
|
|
|
<druid.version>1.0.9</druid.version>
|
|
|
<httpclient.version>4.3.5</httpclient.version>
|
|
|
<servlet-api.version>4.0.1</servlet-api.version>
|
|
|
<javax-servlet-api.version>4.0.1</javax-servlet-api.version>
|
|
|
<jsp-api.version>2.0</jsp-api.version>
|
|
|
<commons-lang3.version>3.3.2</commons-lang3.version>
|
|
|
<pagehelper.version>5.1.10</pagehelper.version>
|
|
|
<alibabaJson.version>1.2.4</alibabaJson.version>
|
|
|
<commons-fileupload.version>1.3.1</commons-fileupload.version>
|
|
|
<aspectj.version>1.8.13</aspectj.version>
|
|
|
<aspectjrt.version>1.8.13</aspectjrt.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>
|
|
|
<poi.version>3.9</poi.version>
|
|
|
<sigar.version>1.6.3</sigar.version>
|
|
|
<base64.version>138</base64.version>
|
|
|
</properties>
|
|
|
|
|
|
<!-- maven依赖 -->
|
|
|
<dependencyManagement>
|
|
|
|
|
|
<dependencies>
|
|
|
<!-- 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>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-test</artifactId>
|
|
|
<version>${spring.version}</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
<version>${mysql.version}</version>
|
|
|
</dependency>
|
|
|
<!-- Mybatis -->
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
<artifactId>mybatis-spring</artifactId>
|
|
|
<version>${mybatis.spring.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
<artifactId>mybatis</artifactId>
|
|
|
<version>${mybatis.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 日志处理 -->
|
|
|
<dependency>
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
<version>${slf4j.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 连接池 -->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>druid</artifactId>
|
|
|
<version>${druid.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 引入pageHelper分页插件 -->
|
|
|
<dependency>
|
|
|
<groupId>com.github.pagehelper</groupId>
|
|
|
<artifactId>pagehelper</artifactId>
|
|
|
<version>${pagehelper.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- Jackson Json处理工具包 -->
|
|
|
<!--alibabaJson-->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
<version>${alibabaJson.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
<artifactId>httpclient</artifactId>
|
|
|
<version>4.2.6</version>
|
|
|
</dependency>
|
|
|
<!--fasterJson-->
|
|
|
<dependency>
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
<version>${jackson.version}</version>
|
|
|
</dependency>
|
|
|
<!-- Apache工具组件 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
<version>${commons-lang3.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>javax.servlet</groupId>
|
|
|
<artifactId>jstl</artifactId>
|
|
|
<version>${jstl.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
|
<version>${javax-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>commons-fileupload</groupId>
|
|
|
<artifactId>commons-fileupload</artifactId>
|
|
|
<version>${commons-fileupload.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-ooxml</artifactId>
|
|
|
<version>${poi.version}</version>
|
|
|
</dependency>
|
|
|
<!--sigar-->
|
|
|
<dependency>
|
|
|
<groupId>org.hyperic.sigar</groupId>
|
|
|
<artifactId>com.springsource.org.hyperic.sigar</artifactId>
|
|
|
<version>${sigar.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<!--base64-->
|
|
|
<dependency>
|
|
|
<groupId>bouncycastle</groupId>
|
|
|
<artifactId>bcprov-jdk14</artifactId>
|
|
|
<version>${base64.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</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>1024m</meminitial><!-- 编译器使用的初始内存 -->
|
|
|
<maxmem>1024m</maxmem><!-- 编译器使用的最大内存 -->
|
|
|
<!-- <compilerArgument>-verbose -bootclasspath ${java.home}\lib\rt.jar</compilerArgument> 这个选项用来传递编译器自身不包含但是却支持的参数选项 -->
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|
|
|
|
|
|
</project> |