diff options
author | Bo Yang <teboring@google.com> | 2015-05-29 16:28:05 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2015-05-29 16:32:04 -0700 |
commit | 252daef02beb27dfb271af8c191102bd24ffd3e3 (patch) | |
tree | 7775c097ade99e8ea24a0bc6939eb2a8c5b0e9a6 /java | |
parent | e107e2d68edb550bc7763db2cbbc463ae264dcce (diff) |
Add distributionManagement explicitly to prevent maven from using
default configuration. In default configuration, maven needs webdav for
deployment, which cannot be found in central repository.
Diffstat (limited to 'java')
-rw-r--r-- | java/pom.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/pom.xml b/java/pom.xml index f0969db7..6877ac27 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -191,6 +191,16 @@ <profiles> <profile> <id>release</id> + <distributionManagement> + <snapshotRepository> + <id>sonatype-nexus-staging</id> + <url>https://oss.sonatype.org/content/repositories/snapshots</url> + </snapshotRepository> + <repository> + <id>sonatype-nexus-staging</id> + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> + </repository> + </distributionManagement> <build> <plugins> <plugin> |