diff --git a/.gitignore b/.gitignore index 79db67a1..e740cce3 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ rmlmapper.iml ojdbc*.jar pom-oracle.xml dependency-reduced-pom.xml +settings.xml \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b1c5cca2..b1d0d821 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased +### Added +- Add to Maven Central (see [issue 94](https://gitlab.ilabt.imec.be/rml/proc/rmlmapper-java/-/issues/94)) + ### Fixed - Fix CSVW with tab (see issues [168](https://gitlab.ilabt.imec.be/rml/proc/rmlmapper-java/-/issues/168) and [169](https://gitlab.ilabt.imec.be/rml/proc/rmlmapper-java/-/issues/169)) diff --git a/README.md b/README.md index 6c90e97c..d9344613 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ The RMLMapper loads all data in memory, so be aware when working with big datase - [Docker](#docker) - [Including functions](#including-functions) - [Testing](#testing) +- [Deploy on Central Repository](#deploy-on-central-repository) - [Dependencies](#dependencies) - [Remarks](#remarks) - [Documentation](#documentation) @@ -210,6 +211,14 @@ Make sure you have [Docker](https://www.docker.com) running. * A problem with Docker (can't start the container) causes the SQLServer tests to fail locally. These tests will always succeed locally. * A problem with Docker (can't start the container) causes the PostgreSQL tests to fail locally on Windows 7 machines. +## Deploy on Central Repository +The following steps deploy a new version to the Central Repository, +based on [this tutorial](https://central.sonatype.org/pages/apache-maven.html). + +1. Copy `settings.example.xml` to `settings.xml`. +2. Fill in your JIRA user name and password in `settings.xml`. +3. Deploy the latest release via `mvn clean deploy -P release`. + ## Dependencies | Dependency | License | diff --git a/buildNumber.properties b/buildNumber.properties index d8531a7d..ed5c5170 100644 --- a/buildNumber.properties +++ b/buildNumber.properties @@ -1,3 +1,3 @@ #maven.buildNumber.plugin properties file -#Mon Sep 14 10:45:01 CEST 2020 -buildNumber0=306 +#Mon Sep 14 12:51:20 CEST 2020 +buildNumber0=307 diff --git a/pom.xml b/pom.xml index f31efa9a..d205a06d 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,74 @@ + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + + + + release + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + docs + en + + + + attach-javadocs + install + + javadoc + + + public + docs + false + none + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + + + + ch.qos.logback @@ -155,30 +223,6 @@ 3.8.1 - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.0 - - docs - en - - - - attach-javadocs - install - - javadoc - - - public - docs - false - none - - - - org.apache.maven.plugins maven-shade-plugin @@ -253,6 +297,17 @@ + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://oss.sonatype.org/ + true + + diff --git a/settings.example.xml b/settings.example.xml new file mode 100644 index 00000000..aa763642 --- /dev/null +++ b/settings.example.xml @@ -0,0 +1,9 @@ + + + + ossrh + jira-username + jira-password + + + \ No newline at end of file