|
|
<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.jwsaas.food</groupId>
|
|
|
<artifactId>food-job-executor</artifactId>
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
<name>food-job-executor</name>
|
|
|
<url>http://maven.apache.org</url>
|
|
|
|
|
|
<properties>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<java.version>1.8</java.version>
|
|
|
<file.encoding>UTF-8</file.encoding>
|
|
|
|
|
|
<spring.boot.version>1.4.3.RELEASE</spring.boot.version>
|
|
|
<c3p0.version>0.9.5.2</c3p0.version>
|
|
|
|
|
|
<jetty.version>9.2.21.v20170120</jetty.version>
|
|
|
|
|
|
<hessian.version>4.0.38</hessian.version>
|
|
|
<common.utils.version>1.0.0</common.utils.version>
|
|
|
<okhttp.version>3.4.1</okhttp.version>
|
|
|
|
|
|
<jw.job.core.version>1.0.0</jw.job.core.version>
|
|
|
</properties>
|
|
|
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
<version>${spring.boot.version}</version>
|
|
|
<type>pom</type>
|
|
|
<scope>import</scope>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
</dependencyManagement>
|
|
|
|
|
|
<dependencies>
|
|
|
<!--spring boot begin -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
|
</dependency>
|
|
|
<!-- spring-boot-starter-web (提供了对web的支持,包含了spring webmvc和tomcat等web开发的特性) -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<!--spring boot end -->
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>com.jwsaas</groupId>
|
|
|
<artifactId>common-utils</artifactId>
|
|
|
<version>${common.utils.version}</version>
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
|
<groupId>commons-logging</groupId>
|
|
|
<artifactId>commons-logging</artifactId>
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
<!-- c3p0 -->
|
|
|
<dependency>
|
|
|
<groupId>com.mchange</groupId>
|
|
|
<artifactId>c3p0</artifactId>
|
|
|
<version>${c3p0.version}</version>
|
|
|
</dependency>
|
|
|
<!-- commons-beanutils -->
|
|
|
<dependency>
|
|
|
<groupId>commons-beanutils</groupId>
|
|
|
<artifactId>commons-beanutils</artifactId>
|
|
|
</dependency>
|
|
|
<!-- okhttp3 -->
|
|
|
<dependency>
|
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
|
<artifactId>okhttp</artifactId>
|
|
|
<version>${okhttp.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>com.jwsaas</groupId>
|
|
|
<artifactId>jw-job-core</artifactId>
|
|
|
<version>${jw.job.core.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
<!-- 默认源代码和资源文件目录配置 -->
|
|
|
<sourceDirectory>src/main/java </sourceDirectory>
|
|
|
<testSourceDirectory>src/test/java</testSourceDirectory>
|
|
|
<resources>
|
|
|
<resource>
|
|
|
<directory>src/main/resources</directory>
|
|
|
</resource>
|
|
|
</resources>
|
|
|
<testResources>
|
|
|
<testResource>
|
|
|
<directory>src/test/resources</directory>
|
|
|
</testResource>
|
|
|
</testResources>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<version>3.1</version>
|
|
|
<configuration>
|
|
|
<source>${java.version}</source>
|
|
|
<target>${java.version}</target>
|
|
|
<showWarnings>true</showWarnings>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
<version>2.5.6</version>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<goals>
|
|
|
<goal>repackage</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
<plugin>
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
<descriptors>
|
|
|
<descriptor>assembly.xml</descriptor>
|
|
|
</descriptors>
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<id>make-assembly</id>
|
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
|
<goal>single</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<excludes>
|
|
|
<exclude>application.properties</exclude>
|
|
|
<exclude>logback.xml</exclude>
|
|
|
<exclude>xxl-job-executor.properties</exclude>
|
|
|
</excludes>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</project>
|