mirror of https://github.com/halo-dev/halo
👽 测试Travis CI
parent
55547546c7
commit
4b27a6b165
|
@ -0,0 +1,3 @@
|
||||||
|
language: java
|
||||||
|
jdk:
|
||||||
|
- oraclejdk8
|
|
@ -31,7 +31,7 @@ Fast,simple,powerful blog system powered by Java.
|
||||||
|
|
||||||
[首页演示](http://halo.ryanc.cc)
|
[首页演示](http://halo.ryanc.cc)
|
||||||
|
|
||||||
[后台演示](http://halo.ryanc.cc/admin)(用户名:admin,密码:123456)
|
[后台演示](http://halo.ryanc.cc/admin)(admin:123456)
|
||||||
|
|
||||||
## Download 下载
|
## Download 下载
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<id>distribution</id>
|
<id>distribution</id>
|
||||||
<formats>
|
<formats>
|
||||||
<format>dir</format>
|
<format>zip</format>
|
||||||
</formats>
|
</formats>
|
||||||
|
|
||||||
<includeBaseDirectory>false</includeBaseDirectory>
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
|
153
pom.xml
153
pom.xml
|
@ -122,93 +122,74 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<profiles>
|
<build>
|
||||||
<!-- 生产环境打包配置 -->
|
<finalName>halo</finalName>
|
||||||
<profile>
|
<resources>
|
||||||
<id>prod</id>
|
<resource>
|
||||||
<build>
|
<directory>src/main/java</directory>
|
||||||
<finalName>halo</finalName>
|
<filtering>false</filtering>
|
||||||
<resources>
|
<excludes>
|
||||||
<resource>
|
<exclude>**/*.java</exclude>
|
||||||
<directory>src/main/java</directory>
|
</excludes>
|
||||||
<filtering>false</filtering>
|
</resource>
|
||||||
<excludes>
|
</resources>
|
||||||
<exclude>**/*.java</exclude>
|
<plugins>
|
||||||
</excludes>
|
<!-- 跳过单元测试,不然打包的时候会因为加载不了application.yaml报错 -->
|
||||||
</resource>
|
<plugin>
|
||||||
</resources>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<plugins>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<!-- 跳过单元测试,不然打包的时候会因为加载不了application.yaml报错 -->
|
<configuration>
|
||||||
<plugin>
|
<skip>true</skip>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
</configuration>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
</plugin>
|
||||||
<configuration>
|
|
||||||
<skip>true</skip>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<appendAssemblyId>false</appendAssemblyId>
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
<descriptors>
|
<descriptors>
|
||||||
<descriptor>assembly.xml</descriptor>
|
<descriptor>assembly.xml</descriptor>
|
||||||
</descriptors>
|
</descriptors>
|
||||||
<outputDirectory>${project.build.directory}/dist/</outputDirectory>
|
<outputDirectory>${project.build.directory}/dist/</outputDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>make-assembly</id>
|
<id>make-assembly</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>single</goal>
|
<goal>single</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- 打包成jar文件,并指定lib文件夹以及resources资源文件夹 -->
|
<!-- 打包成jar文件,并指定lib文件夹以及resources资源文件夹 -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
<version>2.4</version>
|
<version>2.4</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>cc.ryanc.halo.Application</mainClass>
|
<mainClass>cc.ryanc.halo.Application</mainClass>
|
||||||
<classpathPrefix>lib/</classpathPrefix>
|
<classpathPrefix>lib/</classpathPrefix>
|
||||||
<addClasspath>true</addClasspath>
|
<addClasspath>true</addClasspath>
|
||||||
</manifest>
|
</manifest>
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
<Class-Path>resources/</Class-Path>
|
<Class-Path>resources/</Class-Path>
|
||||||
</manifestEntries>
|
</manifestEntries>
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</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>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue