Skip to content

Commit d250fc8

Browse files
committed
Implemented the sonatype settings.
1 parent f4d909f commit d250fc8

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
- docker
77
after_success:
88
- bash <(curl -s https://codecov.io/bash)
9+
- mvn deploy --settings travis-settings.xml -DskipTests=true -B
910
before_deploy:
1011
- "mvn -DskipTests package"
1112
- export FILE_TO_UPLOAD=$(ls target/pulsar-java-spring-boot-starter-*.jar)

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,15 @@
149149
</plugins>
150150
</build>
151151

152+
<distributionManagement>
153+
<snapshotRepository>
154+
<id>ossrh</id>
155+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
156+
</snapshotRepository>
157+
<repository>
158+
<id>ossrh</id>
159+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
160+
</repository>
161+
</distributionManagement>
162+
152163
</project>

travis-settings.xml

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

0 commit comments

Comments
 (0)