Skip to content

Commit 993f658

Browse files
committed
updated travis to deploy snapshots
1 parent 0d52878 commit 993f658

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ language: java
33
script: mvn verify
44
jdk:
55
- openjdk7
6+
after_success:
7+
- if [ $SONATYPE_USERNAME ] && [ -z $TRAVIS_TAG ] && [ $TRAVIS_PULL_REQUEST == false ]; then
8+
mvn clean deploy --settings .travis/settings.xml;
9+
fi;
10+
branches:
11+
only:
12+
- master
13+
- 2.0

.travis/settings.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<settings>
2+
<localRepository/>
3+
<interactiveMode/>
4+
<usePluginRegistry/>
5+
<offline/>
6+
<pluginGroups/>
7+
<servers>
8+
<server>
9+
<id>sonatype-nexus-snapshots</id>
10+
<username>${env.SONATYPE_USERNAME}</username>
11+
<password>${env.SONATYPE_PASSWORD}</password>
12+
</server>
13+
</servers>
14+
<mirrors/>
15+
<proxies/>
16+
<profiles/>
17+
<activeProfiles/>
18+
</settings>

0 commit comments

Comments
 (0)