Skip to content

Commit 5def92a

Browse files
committed
Merge pull request #3 from jdcasey/master
update travisci controls and use new id for snapshot repo
2 parents d24fb22 + 2d1d9ac commit 5def92a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@ cache:
88
directories:
99
- '$HOME/.m2/repository'
1010

11-
before_install:
12-
- curl http://repository.commonjava.org/mavdav/settings/group/settings-ci.xml > $HOME/.m2/settings.xml
13-
- sudo rm /etc/mavenrc
1411
install: /bin/true
15-
script: mvn clean deploy -V -Prun-its -B -e
12+
script: mvn deploy -s ./travis-settings.xml -V -Prun-its -X -B -e

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
397397
</repository>
398398
<snapshotRepository>
399-
<id>sonatype-nexus-staging</id>
399+
<id>sonatype-nexus-snapshots</id>
400400
<name>Sonatype Nexus</name>
401401
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
402402
</snapshotRepository>

travis-settings.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<settings>
2+
<servers>
3+
<server>
4+
<id>sonatype-nexus-snapshots</id>
5+
<username>${env.SONATYPE_USER}</username>
6+
<password>${env.SONATYPE_PASS}</password>
7+
</server>
8+
</servers>
9+
</settings>

0 commit comments

Comments
 (0)