Skip to content

Commit 235ddbb

Browse files
committed
Snapshot deploy to sonatype (added creds)
1 parent c2da670 commit 235ddbb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ script:
99
- mvn clean verify
1010
- java -jar NetLicensingClient-demo/target/netlicensing-client-demo.jar
1111
after_success:
12-
- test "${TRAVIS_JDK_VERSION}" == "openjdk7" && test "${TRAVIS_TEST_RESULT}" == "0" && mvn deploy -Drepo.snapshots.url=https://oss.sonatype.org/content/repositories/snapshots
12+
- test "${TRAVIS_JDK_VERSION}" == "openjdk7" && test "${TRAVIS_TEST_RESULT}" == "0" && mvn deploy --settings travis-mvn-settings.xml -Drepo.snapshots.url=https://oss.sonatype.org/content/repositories/snapshots -DskipTests=true -B

travis-mvn-settings.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
4+
https://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
<servers>
6+
<server>
7+
<!-- Maven Central Deployment (snapshot) -->
8+
<id>lmbox-snapshots</id>
9+
<username>${env.SONATYPE_USERNAME}</username>
10+
<password>${env.SONATYPE_PASSWORD}</password>
11+
</server>
12+
</servers>
13+
</settings>

0 commit comments

Comments
 (0)