Repository to build lucene-analyzers-kuromoji-neologd.
When pushing a tag to git, TravisCI automatically creates a release.
<dependency>
<groupId>io.github.myui</groupId>
<artifactId>lucene-analyzers-kuromoji-neologd</artifactId>
<version>8.8.2-20200910.2</version>
</dependency>
export LUCENE_VERSION=`cat LUCENE_VERSION`
export NEOLOGD_VERSION_DATE=`cat NEOLOGD_VERSION_DATE`
export RC_NUMBER=2
export PACKAGE_VERSION="${LUCENE_VERSION}-${NEOLOGD_VERSION_DATE}.${RC_NUMBER}"
mvn versions:set -f lucene-analyzers-kuromoji-neologd.pom -DnewVersion=${PACKAGE_VERSION} -DgenerateBackupPoms=false
git add lucene-analyzers-kuromoji-neologd.pom
git commit -m "Update version string"
git push origin main
git tag v${PACKAGE_VERSION}
git push origin v${PACKAGE_VERSION}
export NEXUS_PASSWD=xxxx
export FILE_VERSION="${LUCENE_VERSION}-${NEOLOGD_VERSION_DATE}"
mvn gpg:sign-and-deploy-file \
-s ./settings.xml \
-DpomFile=./lucene-analyzers-kuromoji-neologd.pom \
-DrepositoryId=sonatype-nexus-staging \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
-Dfile=dist/lucene-analyzers-kuromoji-neologd-${FILE_VERSION}.jar \
-Dsources=dist/lucene-analyzers-kuromoji-neologd-${FILE_VERSION}-src.jar \
-Djavadoc=dist/lucene-analyzers-kuromoji-neologd-${FILE_VERSION}-javadoc.jar
- Log in to oss.sonatype.com
- Click on “Staging Repositories” under Build Promotion
- Verify the content of the repository (in the bottom pane), check it, click Close, confirm
- Check the repo again, click “Release”
- You shall now see your artifacts in the release repository created for you
- In some hours, it should also appear in Maven Central