diff --git a/.gitignore b/.gitignore
index ed0675e..0a56cd0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,5 +7,6 @@ include/osmpbf/*.pb.h
src/*.pb.h
src/*.pb.o
src/libosmpbf.a
+target
*.swp
obj-x86_64-linux-gnu
diff --git a/README.md b/README.md
index d5a36ce..4fa5587 100644
--- a/README.md
+++ b/README.md
@@ -10,10 +10,20 @@ For more information see https://wiki.openstreetmap.org/wiki/PBF_Format .
## Java Version
-To build the osmpbf.jar file run:
+We publish the Java library to [Maven Central](https://search.maven.org/):
+
+```xml
+
+ org.openstreetmap.pbf
+ osmpbf
+ 1.4.0
+
+```
+
+To build the Java library run:
```sh
-ant
+mvn package
```
For a Java usage example, see src.java/crosby/binary/test/ReadFileExample.java
diff --git a/pom.xml b/pom.xml
index 9dae82d..578cc61 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,13 +3,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- crosby.binary
+ org.openstreetmap.pbf
osmpbf
jar
1.4.0
OSM-Binary
Library for the OpenStreetMap PBF format
- https://github.com/scrosby/OSM-binary
+ https://github.com/openstreetmap/OSM-binary
GNU General Lesser Public License (LGPL) version 3.0
@@ -18,9 +18,16 @@
- https://github.com/scrosby/OSM-binary
- https://github.com/scrosby/OSM-binary.git
+ https://github.com/openstreetmap/OSM-binary
+ https://github.com/openstreetmap/OSM-binary.git
+
+
+ osm-dev
+ OpenStreetMap developers
+ dev@openstreetmap.org
+
+
UTF-8
@@ -67,6 +74,50 @@
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 3.2.0
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 3.2.0
+
+ false
+
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.6
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
@@ -91,4 +142,16 @@
3.13.0
+
+
+
+ ossrh
+ https://oss.sonatype.org/service/local/staging/deploy/maven2
+
+
+ ossrh
+ https://oss.sonatype.org/content/repositories/snapshots
+
+
+