2018-01-21 10:08:26 +00:00
|
|
|
|
<?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>cc.ryanc</groupId>
|
|
|
|
|
<artifactId>halo</artifactId>
|
2018-05-29 09:30:50 +00:00
|
|
|
|
<version>latest</version>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
<name>halo</name>
|
2018-09-12 01:50:34 +00:00
|
|
|
|
<!-- 虽然Halo使用了宽松的GPL协议,但开发不易,希望您可以保留一下版权声明。笔芯~ -->
|
2018-01-21 10:08:26 +00:00
|
|
|
|
<description>
|
|
|
|
|
halo,一个基于SpringBoot的博客系统,最求轻快,易用,以内容为中心。
|
|
|
|
|
</description>
|
2018-03-21 09:56:25 +00:00
|
|
|
|
|
2018-01-21 10:08:26 +00:00
|
|
|
|
<developers>
|
|
|
|
|
<developer>
|
2018-04-24 09:56:21 +00:00
|
|
|
|
<id>ruibaby</id>
|
2018-03-19 01:52:30 +00:00
|
|
|
|
<name>Ryan Wang</name>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
<email>i@ryanc.cc</email>
|
|
|
|
|
<url>https://ryanc.cc</url>
|
|
|
|
|
</developer>
|
|
|
|
|
</developers>
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
2018-09-20 13:53:42 +00:00
|
|
|
|
<version>2.0.5.RELEASE</version>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
<relativePath/>
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
|
<java.version>1.8</java.version>
|
2018-03-21 03:09:23 +00:00
|
|
|
|
<oh-my-email.version>0.0.3</oh-my-email.version>
|
2018-09-14 03:32:44 +00:00
|
|
|
|
<lombok.version>1.18.2</lombok.version>
|
|
|
|
|
<ehcache.version>3.6.0</ehcache.version>
|
|
|
|
|
<rome.version>1.0</rome.version>
|
2018-09-29 14:49:12 +00:00
|
|
|
|
<hutool-all.version>4.1.14</hutool-all.version>
|
2018-07-14 10:36:17 +00:00
|
|
|
|
<upyun-java-sdk.version>4.0.1</upyun-java-sdk.version>
|
2018-09-14 03:32:44 +00:00
|
|
|
|
<qiniu-java-sdk.version>7.2.14</qiniu-java-sdk.version>
|
|
|
|
|
<thumbnailator.version>0.4.8</thumbnailator.version>
|
|
|
|
|
<jaxb-api.version>2.3.0</jaxb-api.version>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
2018-05-29 04:51:37 +00:00
|
|
|
|
<exclusions>
|
|
|
|
|
<exclusion>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2018-06-06 12:10:21 +00:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- undertow -->
|
2018-05-29 04:51:37 +00:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-undertow</artifactId>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
</dependency>
|
|
|
|
|
|
2018-06-06 12:10:21 +00:00
|
|
|
|
<!-- JPA -->
|
2018-01-23 15:25:11 +00:00
|
|
|
|
<dependency>
|
2018-06-06 12:10:21 +00:00
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
2018-01-23 15:25:11 +00:00
|
|
|
|
</dependency>
|
|
|
|
|
|
2018-05-04 17:01:34 +00:00
|
|
|
|
<!-- mysql-->
|
2018-01-21 10:08:26 +00:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
</dependency>
|
2018-02-03 02:16:31 +00:00
|
|
|
|
|
2018-05-04 17:01:34 +00:00
|
|
|
|
<!-- H2Database -->
|
2018-02-03 02:16:31 +00:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.h2database</groupId>
|
|
|
|
|
<artifactId>h2</artifactId>
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
</dependency>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
|
2018-06-28 06:10:22 +00:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-cache</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2018-06-06 12:10:21 +00:00
|
|
|
|
<!-- freemarker依赖 -->
|
2018-01-21 10:08:26 +00:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
2018-06-06 12:10:21 +00:00
|
|
|
|
<artifactId>spring-boot-starter-freemarker</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- 邮件 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.github.biezhi</groupId>
|
|
|
|
|
<artifactId>oh-my-email</artifactId>
|
|
|
|
|
<version>${oh-my-email.version}</version>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- Lombok -->
|
2018-04-24 09:56:21 +00:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
<version>${lombok.version}</version>
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
</dependency>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
|
2018-07-14 10:36:17 +00:00
|
|
|
|
<!-- EhCache -->
|
2018-01-21 10:08:26 +00:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.ehcache</groupId>
|
|
|
|
|
<artifactId>ehcache</artifactId>
|
2018-03-21 03:09:23 +00:00
|
|
|
|
<version>${ehcache.version}</version>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- rss -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>rome</groupId>
|
|
|
|
|
<artifactId>rome</artifactId>
|
2018-03-21 03:09:23 +00:00
|
|
|
|
<version>${rome.version}</version>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
</dependency>
|
2018-01-23 15:25:11 +00:00
|
|
|
|
|
2018-06-06 12:10:21 +00:00
|
|
|
|
<!-- hutool工具包 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
|
|
<version>${hutool-all.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2018-07-14 10:36:17 +00:00
|
|
|
|
<!-- 又拍云SDK -->
|
2018-06-12 04:24:49 +00:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.upyun</groupId>
|
|
|
|
|
<artifactId>java-sdk</artifactId>
|
2018-07-14 10:36:17 +00:00
|
|
|
|
<version>${upyun-java-sdk.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- 七牛云SDK -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.qiniu</groupId>
|
|
|
|
|
<artifactId>qiniu-java-sdk</artifactId>
|
|
|
|
|
<version>${qiniu-java-sdk.version}</version>
|
2018-06-12 04:24:49 +00:00
|
|
|
|
</dependency>
|
|
|
|
|
|
2018-06-23 07:22:00 +00:00
|
|
|
|
<!-- 图片操作 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>net.coobird</groupId>
|
|
|
|
|
<artifactId>thumbnailator</artifactId>
|
2018-07-14 10:36:17 +00:00
|
|
|
|
<version>${thumbnailator.version}</version>
|
2018-07-20 16:51:16 +00:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- jaxb-api-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>javax.xml.bind</groupId>
|
|
|
|
|
<artifactId>jaxb-api</artifactId>
|
|
|
|
|
<version>${jaxb-api.version}</version>
|
2018-06-23 07:22:00 +00:00
|
|
|
|
</dependency>
|
|
|
|
|
|
2018-01-21 10:08:26 +00:00
|
|
|
|
</dependencies>
|
2018-06-12 04:24:49 +00:00
|
|
|
|
|
2018-05-02 02:10:17 +00:00
|
|
|
|
<profiles>
|
|
|
|
|
<!-- 生产环境打包配置 -->
|
|
|
|
|
<profile>
|
|
|
|
|
<id>prod</id>
|
2018-10-18 12:24:51 +00:00
|
|
|
|
<repositories>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>aliyun</id>
|
|
|
|
|
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
|
|
|
|
</repository>
|
|
|
|
|
</repositories>
|
|
|
|
|
<pluginRepositories>
|
|
|
|
|
<pluginRepository>
|
|
|
|
|
<id>aliyun</id>
|
|
|
|
|
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
|
|
|
|
</pluginRepository>
|
|
|
|
|
</pluginRepositories>
|
2018-05-02 02:10:17 +00:00
|
|
|
|
<build>
|
|
|
|
|
<finalName>halo</finalName>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/java</directory>
|
|
|
|
|
<filtering>false</filtering>
|
|
|
|
|
<excludes>
|
|
|
|
|
<exclude>**/*.java</exclude>
|
|
|
|
|
</excludes>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
<plugins>
|
|
|
|
|
<!-- 跳过单元测试,不然打包的时候会因为加载不了application.yaml报错 -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<skip>true</skip>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>1.8</source>
|
|
|
|
|
<target>1.8</target>
|
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
|
<descriptors>
|
|
|
|
|
<descriptor>assembly.xml</descriptor>
|
|
|
|
|
</descriptors>
|
|
|
|
|
<outputDirectory>${project.build.directory}/dist/</outputDirectory>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>make-assembly</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>single</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<!-- 打包成jar文件,并指定lib文件夹以及resources资源文件夹 -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
2018-07-14 10:36:17 +00:00
|
|
|
|
<version>3.1.0</version>
|
2018-05-02 02:10:17 +00:00
|
|
|
|
<configuration>
|
|
|
|
|
<archive>
|
|
|
|
|
<manifest>
|
|
|
|
|
<mainClass>cc.ryanc.halo.Application</mainClass>
|
|
|
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
|
</manifest>
|
|
|
|
|
<manifestEntries>
|
|
|
|
|
<Class-Path>resources/</Class-Path>
|
|
|
|
|
</manifestEntries>
|
|
|
|
|
</archive>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
</profile>
|
|
|
|
|
|
2018-10-18 12:24:51 +00:00
|
|
|
|
<!--CI环境-->
|
|
|
|
|
<profile>
|
|
|
|
|
<id>ci</id>
|
|
|
|
|
<build>
|
|
|
|
|
<finalName>halo</finalName>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/java</directory>
|
|
|
|
|
<filtering>false</filtering>
|
|
|
|
|
<excludes>
|
|
|
|
|
<exclude>**/*.java</exclude>
|
|
|
|
|
</excludes>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
<plugins>
|
|
|
|
|
<!-- 跳过单元测试,不然打包的时候会因为加载不了application.yaml报错 -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<skip>true</skip>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>1.8</source>
|
|
|
|
|
<target>1.8</target>
|
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
|
<descriptors>
|
|
|
|
|
<descriptor>assembly.xml</descriptor>
|
|
|
|
|
</descriptors>
|
|
|
|
|
<outputDirectory>${project.build.directory}/dist/</outputDirectory>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>make-assembly</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>single</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<!-- 打包成jar文件,并指定lib文件夹以及resources资源文件夹 -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
<version>3.1.0</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<archive>
|
|
|
|
|
<manifest>
|
|
|
|
|
<mainClass>cc.ryanc.halo.Application</mainClass>
|
|
|
|
|
<classpathPrefix>lib/</classpathPrefix>
|
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
|
</manifest>
|
|
|
|
|
<manifestEntries>
|
|
|
|
|
<Class-Path>resources/</Class-Path>
|
|
|
|
|
</manifestEntries>
|
|
|
|
|
</archive>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
</profile>
|
|
|
|
|
|
2018-05-02 02:10:17 +00:00
|
|
|
|
<!-- 开发环境 -->
|
|
|
|
|
<profile>
|
|
|
|
|
<id>dev</id>
|
|
|
|
|
<build>
|
|
|
|
|
<plugins>
|
2018-05-11 12:47:51 +00:00
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<fork>true</fork>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
2018-05-02 02:10:17 +00:00
|
|
|
|
</build>
|
|
|
|
|
</profile>
|
|
|
|
|
</profiles>
|
2018-01-21 10:08:26 +00:00
|
|
|
|
</project>
|