Skip to content

Commit 13d5404

Browse files
author
程亦超(何兮)
committed
add deploy config in pom.xml
Change-Id: I686f1f7693b2f63f795e667fbded38ba99143f5a
1 parent 140b790 commit 13d5404

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
after_deploy:
1818
- echo "deploying to maven central"
1919
- gpg --import secret.key.asc
20-
- mvn package deploy --settings settings.xml -DskipTests=true -Dgpg.passphrase=$GPG_PASSPHRASE
20+
- mvn deploy --settings settings.xml -DskipTests=true -Dgpg.passphrase=$GPG_PASSPHRASE
2121
before_install:
2222
- openssl aes-256-cbc -K $encrypted_f86dc6d297df_key -iv $encrypted_f86dc6d297df_iv
2323
-in secret.key.asc.enc -out secret.key.asc -d

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@
2424
<description>Aliyun ODPS SDK for Java Developers</description>
2525
<url>http://odps.aliyun.com</url>
2626

27+
<distributionManagement>
28+
<snapshotRepository>
29+
<id>sonatype-nexus-snapshots</id>
30+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
31+
</snapshotRepository>
32+
<repository>
33+
<id>nexus-releases</id>
34+
<name>Nexus Release Repository</name>
35+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
36+
</repository>
37+
</distributionManagement>
38+
2739
<organization>
2840
<name>Alibaba Cloud Computing</name>
2941
<url>http://www.aliyun.com</url>

0 commit comments

Comments
 (0)