ossrh-maven

test artifaict for ossrh

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.jinahya
ArtifactId

ArtifactId

ossrh-maven
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

jar
Description

Description

ossrh-maven
test artifaict for ossrh
Project Organization

Project Organization

Source Code Management

Source Code Management

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

Download ossrh-maven

How to add to project

<!-- 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"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.1