Skip to content

Commit ff77dd6

Browse files
committed
Fix Travis build - use JDK 8 and 11, remove build notifications, always build javadoc
1 parent 93b8679 commit ff77dd6

File tree

2 files changed

+48
-14
lines changed

2 files changed

+48
-14
lines changed

.travis.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
language: java
22
sudo: false
3-
install: mvn -Pstaging install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
4-
script: mvn -Pstaging test -B
3+
script: mvn clean install -Dstaging -B -V
54
jdk:
6-
- oraclejdk8
5+
- openjdk8
6+
- openjdk11
77

88
cache:
99
directories:
10-
- $HOME/.m2
11-
12-
notifications:
13-
email:
14-
- cdi-dev@lists.jboss.org
15-
irc:
16-
channels:
17-
- "chat.freenode.net#cdi-dev"
18-
on_success: change # options: [always|never|change] default: always
19-
on_failure: always # options: [always|never|change] default: always
20-
on_start: never # options: [always|never|change] default: always
10+
- $HOME/.m2/repository

pom.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,48 @@
3131
<defaultGoal>clean package</defaultGoal>
3232
</build>
3333

34+
<properties>
35+
<sonatypeOssDistMgmtNexusUrl>https://jakarta.oss.sonatype.org/</sonatypeOssDistMgmtNexusUrl>
36+
<sonatypeOssDistMgmtStagingUrl>${sonatypeOssDistMgmtNexusUrl}content/repositories/staging/</sonatypeOssDistMgmtStagingUrl>
37+
</properties>
38+
39+
<profiles>
40+
<!-- A profile used to test Jakarta staged artifacts -->
41+
<profile>
42+
<id>staging</id>
43+
<activation>
44+
<activeByDefault>false</activeByDefault>
45+
<property>
46+
<name>staging</name>
47+
</property>
48+
</activation>
49+
<repositories>
50+
<repository>
51+
<id>sonatype-nexus-staging</id>
52+
<name>Sonatype Nexus Staging</name>
53+
<url>${sonatypeOssDistMgmtStagingUrl}</url>
54+
<releases>
55+
<enabled>true</enabled>
56+
</releases>
57+
<snapshots>
58+
<enabled>false</enabled>
59+
</snapshots>
60+
</repository>
61+
</repositories>
62+
<pluginRepositories>
63+
<pluginRepository>
64+
<id>sonatype-nexus-staging</id>
65+
<name>Sonatype Nexus Staging</name>
66+
<url>${sonatypeOssDistMgmtStagingUrl}</url>
67+
<releases>
68+
<enabled>true</enabled>
69+
</releases>
70+
<snapshots>
71+
<enabled>false</enabled>
72+
</snapshots>
73+
</pluginRepository>
74+
</pluginRepositories>
75+
</profile>
76+
</profiles>
77+
3478
</project>

0 commit comments

Comments
 (0)