Skip to content

myui/lucene-analyzers-kuromoji-neologd

Repository files navigation

lucene-analyzers-kuromoji-neologd

Build Status Maven Central License

Repository to build lucene-analyzers-kuromoji-neologd.

When pushing a tag to git, TravisCI automatically creates a release.

Using lightgbm

<dependency>
    <groupId>io.github.myui</groupId>
    <artifactId>lucene-analyzers-kuromoji-neologd</artifactId>
    <version>8.8.2-20200910.2</version>
</dependency>

Release to Maven central

Release to Staging

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

Release from Staging

  1. Log in to oss.sonatype.com
  2. Click on “Staging Repositories” under Build Promotion
  3. Verify the content of the repository (in the bottom pane), check it, click Close, confirm
  4. Check the repo again, click “Release”
  5. You shall now see your artifacts in the release repository created for you
  6. In some hours, it should also appear in Maven Central