要如何把你的open source 專案 納入maven central repo呢?常在很多open source 專案的parent pom.xml看到這樣的設定:
<parent>
<groupid>org.sonatype.oss</groupid>
<artifactid>oss-parent</artifactid>
<version>7</version>
</parent>
原來這就是把專案加入maven repository 的方式,現在maven central repository 是由sonatype這個組織在管理,關於sonatype的介紹如下:
sonatype OSSRH (OSS Repository Hosting Service) uses Nexus to provide Maven repository hosting service for open source projects: https://oss.sonatype.org/. You can deploy snapshots, stage releases, and promote your releases so they will be synced to The Central Repository. All you need to do is to sign up a Sonatype JIRA account, create a JIRA ticket and make some POM/settings configuration. This document will guide you step by step for the details.
參考這份文件Sonatype OSS Maven Repository Usage Guide,步驟如下:
1. 決定你Release 的 License
2. 申請一個Sonatype JIRA account
3. Create a JIRA ticket
4. 設定要deploy 到哪個repository
沒有留言:
張貼留言