Skip to content

Commit 674bd9a

Browse files
committed
modify travis, build with jdk8
modify travis, build with jdk8
1 parent 3cc8e21 commit 674bd9a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
language: java
2+
jdk:
3+
- openjdk8
24
cache:
35
bundler: true
46
directories:
@@ -7,6 +9,7 @@ sudo: false # faster builds
79
services:
810
- mysql
911
before_install:
12+
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
1013
- mysql -e 'CREATE DATABASE IF NOT EXISTS cat;'
1114
- mysql -u root --password="" cat < script/CatApplication.sql
1215
- mkdir -p $HOME/data/appdatas/cat && mkdir -p $HOME/data/applogs

cat-home/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
<artifactId>maven-war-plugin</artifactId>
190190
<version>2.1.1</version>
191191
<configuration>
192-
<warName>cat-${env}-${version}</warName>
192+
<warName>cat-${env}-${project.version}</warName>
193193
<webResources>
194194
<resource>
195195
<directory>src/main/resources</directory>

0 commit comments

Comments
 (0)