mirror of https://github.com/halo-dev/halo
188 lines
4.8 KiB
XML
188 lines
4.8 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/xsd/maven-4.0.0.xsd">
|
|||
|
<modelVersion>4.0.0</modelVersion>
|
|||
|
<groupId>cc.ryanc</groupId>
|
|||
|
<artifactId>halo</artifactId>
|
|||
|
<version>beta</version>
|
|||
|
<name>halo</name>
|
|||
|
|
|||
|
<description>
|
|||
|
halo,一个基于SpringBoot的博客系统,最求轻快,易用,以内容为中心。
|
|||
|
</description>
|
|||
|
<!-- 填坑的人 -->
|
|||
|
<developers>
|
|||
|
<developer>
|
|||
|
<id>RYAN0UP</id>
|
|||
|
<name>Ruiyuan Wang</name>
|
|||
|
<email>i@ryanc.cc</email>
|
|||
|
<url>https://ryanc.cc</url>
|
|||
|
</developer>
|
|||
|
</developers>
|
|||
|
|
|||
|
<parent>
|
|||
|
<groupId>org.springframework.boot</groupId>
|
|||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|||
|
<version>1.5.8.RELEASE</version>
|
|||
|
<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>
|
|||
|
</properties>
|
|||
|
|
|||
|
<dependencies>
|
|||
|
|
|||
|
<!-- JPA -->
|
|||
|
<dependency>
|
|||
|
<groupId>org.springframework.boot</groupId>
|
|||
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<!-- freemarker依赖 -->
|
|||
|
<dependency>
|
|||
|
<groupId>org.springframework.boot</groupId>
|
|||
|
<artifactId>spring-boot-starter-freemarker</artifactId>
|
|||
|
</dependency>
|
|||
|
<dependency>
|
|||
|
<groupId>org.springframework.boot</groupId>
|
|||
|
<artifactId>spring-boot-starter-web</artifactId>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<!-- mysql -->
|
|||
|
<dependency>
|
|||
|
<groupId>mysql</groupId>
|
|||
|
<artifactId>mysql-connector-java</artifactId>
|
|||
|
<scope>runtime</scope>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<!-- druid数据源 -->
|
|||
|
<dependency>
|
|||
|
<groupId>com.alibaba</groupId>
|
|||
|
<artifactId>druid</artifactId>
|
|||
|
<version>1.1.6</version>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<dependency>
|
|||
|
<groupId>org.springframework.boot</groupId>
|
|||
|
<artifactId>spring-boot-starter-test</artifactId>
|
|||
|
<scope>test</scope>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<!-- Lombok -->
|
|||
|
<dependency>
|
|||
|
<groupId>org.projectlombok</groupId>
|
|||
|
<artifactId>lombok</artifactId>
|
|||
|
<version>1.16.18</version>
|
|||
|
<scope>provided</scope>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<!-- enCache -->
|
|||
|
<dependency>
|
|||
|
<groupId>org.ehcache</groupId>
|
|||
|
<artifactId>ehcache</artifactId>
|
|||
|
<version>3.4.0</version>
|
|||
|
</dependency>
|
|||
|
|
|||
|
<!-- rss -->
|
|||
|
<dependency>
|
|||
|
<groupId>rome</groupId>
|
|||
|
<artifactId>rome</artifactId>
|
|||
|
<version>1.0</version>
|
|||
|
</dependency>
|
|||
|
</dependencies>
|
|||
|
|
|||
|
<profiles>
|
|||
|
<!-- 生产环境打包配置 -->
|
|||
|
<profile>
|
|||
|
<id>prod</id>
|
|||
|
<build>
|
|||
|
<finalName>halo</finalName>
|
|||
|
<resources>
|
|||
|
<!-- 让jar包只存在字节码文件 -->
|
|||
|
<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>2.4</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>
|
|||
|
|
|||
|
<!-- 开发环境 -->
|
|||
|
<profile>
|
|||
|
<id>dev</id>
|
|||
|
<build>
|
|||
|
<plugins>
|
|||
|
<plugin>
|
|||
|
<groupId>org.springframework.boot</groupId>
|
|||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|||
|
</plugin>
|
|||
|
</plugins>
|
|||
|
</build>
|
|||
|
</profile>
|
|||
|
</profiles>
|
|||
|
</project>
|