139 lines
4.1 KiB
XML
139 lines
4.1 KiB
XML
<?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/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>jfly</name>
|
|
<groupId>com.lxyer</groupId>
|
|
<artifactId>jfly</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.jfinal</groupId>
|
|
<artifactId>jfinal</artifactId>
|
|
<version>4.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.jfinal</groupId>
|
|
<artifactId>jfinal-undertow</artifactId>
|
|
<version>1.6</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>6.0.6</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.zaxxer</groupId>
|
|
<artifactId>HikariCP</artifactId>
|
|
<version>3.3.1</version>
|
|
</dependency>
|
|
|
|
<!-- ehcache 支持 -->
|
|
<dependency>
|
|
<groupId>net.sf.ehcache</groupId>
|
|
<artifactId>ehcache-core</artifactId>
|
|
<version>2.6.11</version>
|
|
</dependency>
|
|
|
|
<!-- redis 支持 -->
|
|
<dependency>
|
|
<groupId>redis.clients</groupId>
|
|
<artifactId>jedis</artifactId>
|
|
<version>3.0.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>de.ruedigermoeller</groupId>
|
|
<artifactId>fst</artifactId>
|
|
<version>2.57</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.javassist</groupId>
|
|
<artifactId>javassist</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>com.cedarsoftware</groupId>
|
|
<artifactId>java-util</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
<version>3.0-alpha-1</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!--
|
|
jar 包中的配置文件优先级高于 config 目录下的 "同名文件"
|
|
因此,打包时需要排除掉 jar 包中来自 src/main/resources 目录的
|
|
配置文件,否则部署时 config 目录中的同名配置文件不会生效
|
|
-->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>2.6</version>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>*.txt</exclude>
|
|
<exclude>*.xml</exclude>
|
|
<exclude>*.properties</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>make-assembly</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
|
|
<configuration>
|
|
<!-- 打包生成的文件名 -->
|
|
<finalName>${project.artifactId}</finalName>
|
|
<!-- jar 等压缩文件在被打包进入 zip、tar.gz 时是否压缩,设置为 false 可加快打包速度 -->
|
|
<recompressZippedFiles>false</recompressZippedFiles>
|
|
<!-- 打包生成的文件是否要追加 release.xml 中定义的 id 值 -->
|
|
<appendAssemblyId>true</appendAssemblyId>
|
|
<!-- 指向打包描述文件 package.xml -->
|
|
<descriptors>
|
|
<descriptor>package.xml</descriptor>
|
|
</descriptors>
|
|
<!-- 打包结果输出的基础目录 -->
|
|
<outputDirectory>${project.build.directory}/</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|