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.
This commit is contained in:
Bo Yang 2015-05-29 16:28:05 -07:00
parent e107e2d68e
commit 252daef02b
2 changed files with 20 additions and 0 deletions

View file

@ -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>

View file

@ -174,6 +174,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>