ossrh-maven

test artifaict for ossrh

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

com.github.jinahya
Идентификатор

Идентификатор

ossrh-maven
Последняя версия

Последняя версия

0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

ossrh-maven
test artifaict for ossrh
Организация-разработчик

Организация-разработчик

Система контроля версий

Система контроля версий

https://github.com/jinahya/ossrh-maven

Скачать ossrh-maven

Имя Файла Размер
ossrh-maven-0.1.pom
ossrh-maven-0.1.jar 2 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.jinahya/ossrh-maven/ -->
<dependency>
    <groupId>com.github.jinahya</groupId>
    <artifactId>ossrh-maven</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jinahya/ossrh-maven/
implementation 'com.github.jinahya:ossrh-maven:0.1'
// https://jarcasting.com/artifacts/com.github.jinahya/ossrh-maven/
implementation ("com.github.jinahya:ossrh-maven:0.1")
'com.github.jinahya:ossrh-maven:jar:0.1'
<dependency org="com.github.jinahya" name="ossrh-maven" rev="0.1">
  <artifact name="ossrh-maven" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jinahya', module='ossrh-maven', version='0.1')
)
libraryDependencies += "com.github.jinahya" % "ossrh-maven" % "0.1"
[com.github.jinahya/ossrh-maven "0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

ossrh-parent

Build Status Maven Central

A parent pom for deploying artifacts to oss.sonatype.org. see OSSRH Guide (or Apache Maven specific). You might also want to see Working with PGP Signatures.

Configure

pom.xml

Just set this artifact as parent.

<parent>
  <groupId>com.github.jinahya</groupId>
  <artifactId>ossrh-parent</artifactId>
  <version>x.y.z</version>
</parent>

settings.xml

We need two credentials. One for nexus-staging-maven-plugin and the other for maven-gpg-plugin.

<!-- for nexus-staging-maven-plugin -->
<server>
  <id>ossrh</id>
  <username>username</username>
  <password>{...}</password>
</server>

<!-- for maven-gpg-plugin -->
<server>
  <id>gpg.passphrase</id>
  <passphrase>{...}</passphrase>
</server>

Deploy

Snapshots

Snapshots can be deployed as it is.

$ mvn deploy

Releases

Releases can be deployed like this.

$ git checkout x.y.z
$ mvn -Possrh deploy

Caveats

Note that, by invoking the deploy goal with the -Possrh profile, you're intending to deploy the artifact to the OSSRH (snapshot|release) repository. When the ${project.version} doesn't have a SNAPSHOT, the deployed artifact will also be automatically synchronized to the Maven Central Respository.

Версии библиотеки

Версия
0.1