346 lines
13 KiB
XML
346 lines
13 KiB
XML
<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.0</modelVersion>
|
||
<groupId>osc.git.eh3</groupId>
|
||
<artifactId>java-utils</artifactId>
|
||
<packaging>war</packaging>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
|
||
<name>useful-code Maven Webapp</name>
|
||
<url>http://maven.apache.org</url>
|
||
|
||
<properties>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<spring.version>4.0.2.RELEASE</spring.version>
|
||
<servlet.version>2.5</servlet.version>
|
||
<mybatis.version>3.2.7</mybatis.version>
|
||
<mybatis.spring.version>1.1.1</mybatis.spring.version>
|
||
<mybatis.generator.core.version>1.3.2</mybatis.generator.core.version>
|
||
<file_encoding>utf-8</file_encoding>
|
||
<jdk.verion>1.8</jdk.verion>
|
||
<powermock.version>1.7.1</powermock.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.jcraft</groupId>
|
||
<artifactId>jsch</artifactId>
|
||
<version>0.1.53</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.bouncycastle</groupId>
|
||
<artifactId>bcprov-jdk16</artifactId>
|
||
<version>1.46</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>junit</groupId>
|
||
<artifactId>junit</artifactId>
|
||
<version>4.11</version>
|
||
<!-- <scope>test</scope> -->
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>commons-logging</groupId>
|
||
<artifactId>commons-logging</artifactId>
|
||
<version>1.1.3</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.shiro</groupId>
|
||
<artifactId>shiro-core</artifactId>
|
||
<version>1.2.2</version>
|
||
</dependency>
|
||
|
||
<!-- spring begin-->
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-core</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-beans</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-context</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-web</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-oxm</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-tx</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-webmvc</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-aop</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-context-support</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-test</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-jms</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-expression</artifactId>
|
||
<version>${spring.version}</version>
|
||
</dependency>
|
||
<!-- spring end-->
|
||
|
||
<dependency>
|
||
<groupId>commons-codec</groupId>
|
||
<artifactId>commons-codec</artifactId>
|
||
<version>1.6</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>net.sf.json-lib</groupId>
|
||
<artifactId>json-lib</artifactId>
|
||
<version>2.4</version>
|
||
<classifier>jdk15</classifier>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.caucho</groupId>
|
||
<artifactId>hessian</artifactId>
|
||
<version>4.0.38</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>redis.clients</groupId>
|
||
<artifactId>jedis</artifactId>
|
||
<version>2.8.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>5.1.38</version>
|
||
</dependency>
|
||
|
||
<!-- servlet -->
|
||
<dependency>
|
||
<groupId>javax.servlet</groupId>
|
||
<artifactId>servlet-api</artifactId>
|
||
<version>${servlet.version}</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- mybatis start -->
|
||
<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>org.mybatis.generator</groupId>
|
||
<artifactId>mybatis-generator-core</artifactId>
|
||
<version>${mybatis.generator.core.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>c3p0</groupId>
|
||
<artifactId>c3p0</artifactId>
|
||
<version>0.9.1.2</version>
|
||
</dependency>
|
||
|
||
<!-- mybatis end -->
|
||
<dependency>
|
||
<groupId>org.apache.httpcomponents</groupId>
|
||
<artifactId>httpclient</artifactId>
|
||
<version>4.5.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
||
<version>3.1.6</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.cxf</groupId>
|
||
<artifactId>cxf-rt-transports-http</artifactId>
|
||
<version>3.1.6</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.activemq</groupId>
|
||
<artifactId>activemq-all</artifactId>
|
||
<version>5.13.3</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.xbean</groupId>
|
||
<artifactId>xbean-spring</artifactId>
|
||
<version>4.5</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
<version>2.5</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.powermock</groupId>
|
||
<artifactId>powermock-module-junit4</artifactId>
|
||
<version>${powermock.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.powermock</groupId>
|
||
<artifactId>powermock-api-mockito2</artifactId>
|
||
<version>${powermock.version}</version>
|
||
</dependency>
|
||
</dependencies>
|
||
<build>
|
||
<finalName>java-utils</finalName>
|
||
<pluginManagement>
|
||
<plugins>
|
||
<!-- mybatis-generator 插件; Run AS——>Maven Build… ——>在Goals框中输入:mybatis-generator:generate -->
|
||
<plugin>
|
||
<groupId>org.mybatis.generator</groupId>
|
||
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
||
<version>1.3.2</version>
|
||
<configuration>
|
||
<verbose>true</verbose>
|
||
<overwrite>true</overwrite>
|
||
</configuration>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>5.1.38</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</plugin>
|
||
|
||
<!-- 指定JDK编译版本 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<configuration>
|
||
<source>${jdk.verion}</source>
|
||
<target>${jdk.verion}</target>
|
||
<encoding>${file_encoding}</encoding>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<!-- jetty 服务器; Maven build... -> jetty:run -->
|
||
<plugin>
|
||
<groupId>org.mortbay.jetty</groupId>
|
||
<artifactId>jetty-maven-plugin</artifactId>
|
||
<version>8.1.15.v20140411</version>
|
||
<configuration>
|
||
<webApp>
|
||
<contextPath>/usefull-code</contextPath>
|
||
</webApp>
|
||
<stopKey>exit</stopKey>
|
||
<stopPort>9090</stopPort>
|
||
<scanIntervalSeconds>1</scanIntervalSeconds>
|
||
<connectors>
|
||
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
||
<port>8080</port>
|
||
<maxIdleTime>60000</maxIdleTime>
|
||
</connector>
|
||
</connectors>
|
||
<requestLog implementation="org.eclipse.jetty.server.NCSARequestLog">
|
||
<filename>target/access.log</filename>
|
||
<retainDays>90</retainDays>
|
||
<append>false</append>
|
||
<extended>false</extended>
|
||
<logTimeZone>GMT+8:00</logTimeZone>
|
||
</requestLog>
|
||
<!-- <systemProperties> <systemProperty> <name>productionMode</name>
|
||
<value>${productionMode}</value> </systemProperty> </systemProperties> -->
|
||
</configuration>
|
||
</plugin>
|
||
<!-- 生成javadoc文档包的插件 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-javadoc-plugin</artifactId>
|
||
<version>2.10.2</version>
|
||
<configuration>
|
||
<aggregate>true</aggregate>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>attach-javadocs</id>
|
||
<goals>
|
||
<goal>jar</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<!-- 生成sources源码包的插件 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-source-plugin</artifactId>
|
||
<version>2.1.2</version>
|
||
<executions>
|
||
<execution>
|
||
<id>attach-sources</id>
|
||
<phase>verify</phase>
|
||
<goals>
|
||
<goal>jar-no-fork</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</pluginManagement>
|
||
<defaultGoal>compile</defaultGoal>
|
||
</build>
|
||
</project>
|