Maven release

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Maven release

bdas77
Hi Team ,

Is there any instruction any where like how to publish release  , I have been trying to publish release to my own private nexus  repository but some how it seems always trying to upload  https://repository.apache.org/service/local/staging/deploy/  even I tried to set with --settings my settings.xml and -Durl but some where it's is picking always apache nexus repository . I don't see any distribution entry in any POM .

Thank you .
Biswajit



Thank you
~/Das
Reply | Threaded
Open this post in threaded view
|

Re: Maven release

Gary Yao-2
Hi Biswajit,

The distribution management configuration can be found in the parent pom of
flink-parent:

<parent>
  <groupId>org.apache</groupId>
  <artifactId>apache</artifactId>
  <version>18</version>
</parent>

<distributionManagement>
  <repository>
    <id>apache.releases.https</id>
    <name>Apache Release Distribution Repository</name>
  </repository>
  <snapshotRepository>
    <id>apache.snapshots.https</id>
    <name>${distMgmtSnapshotsName}</name>
    <url>${distMgmtSnapshotsUrl}</url>
  </snapshotRepository>
</distributionManagement>

The properties are set to the following values in the parent pom:

  <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>

With -DdistMgmtSnapshotsUrl you should be able to provide the url of your own
repository.

Best,

Gary


On Wed, Oct 18, 2017 at 12:56 AM, Biswajit Das <[hidden email]> wrote:
Hi Team ,

Is there any instruction any where like how to publish release  , I have been trying to publish release to my own private nexus  repository but some how it seems always trying to upload  https://repository.apache.org/service/local/staging/deploy/  even I tried to set with --settings my settings.xml and -Durl but some where it's is picking always apache nexus repository . I don't see any distribution entry in any POM .

Thank you .
Biswajit