Skip to content

Commit 7a05c39

Browse files
committed
Deploy to Maven Central
1 parent 78381f3 commit 7a05c39

File tree

3 files changed

+80
-6
lines changed

3 files changed

+80
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ include/osmpbf/*.pb.h
77
src/*.pb.h
88
src/*.pb.o
99
src/libosmpbf.a
10+
target
1011
*.swp
1112
obj-x86_64-linux-gnu

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,20 @@ For more information see https://wiki.openstreetmap.org/wiki/PBF_Format .
1010

1111
## Java Version
1212

13-
To build the osmpbf.jar file run:
13+
We publish the Java library to [Maven Central](https://search.maven.org/):
14+
15+
```xml
16+
<dependency>
17+
<groupId>org.openstreetmap.pbf</groupId>
18+
<artifactId>osmpbf</artifactId>
19+
<version>1.4.0</version>
20+
</dependency>
21+
```
22+
23+
To build the Java library run:
1424

1525
```sh
16-
ant
26+
mvn package
1727
```
1828

1929
For a Java usage example, see src.java/crosby/binary/test/ReadFileExample.java

pom.xml

+67-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
44
http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
<groupId>crosby.binary</groupId>
6+
<groupId>org.openstreetmap.pbf</groupId>
77
<artifactId>osmpbf</artifactId>
88
<packaging>jar</packaging>
99
<version>1.4.0</version>
1010
<name>OSM-Binary</name>
1111
<description>Library for the OpenStreetMap PBF format</description>
12-
<url>https://github.com/scrosby/OSM-binary</url>
12+
<url>https://github.com/openstreetmap/OSM-binary</url>
1313
<licenses>
1414
<license>
1515
<name>GNU General Lesser Public License (LGPL) version 3.0</name>
@@ -18,9 +18,16 @@
1818
</license>
1919
</licenses>
2020
<scm>
21-
<url>https://github.com/scrosby/OSM-binary</url>
22-
<connection>https://github.com/scrosby/OSM-binary.git</connection>
21+
<url>https://github.com/openstreetmap/OSM-binary</url>
22+
<connection>https://github.com/openstreetmap/OSM-binary.git</connection>
2323
</scm>
24+
<developers>
25+
<developer>
26+
<id>osm-dev</id>
27+
<name>OpenStreetMap developers</name>
28+
<email>dev@openstreetmap.org</email>
29+
</developer>
30+
</developers>
2431

2532
<properties>
2633
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -67,6 +74,50 @@
6774
</execution>
6875
</executions>
6976
</plugin>
77+
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-source-plugin</artifactId>
81+
<version>3.2.0</version>
82+
<executions>
83+
<execution>
84+
<id>attach-sources</id>
85+
<goals>
86+
<goal>jar-no-fork</goal>
87+
</goals>
88+
</execution>
89+
</executions>
90+
</plugin>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-javadoc-plugin</artifactId>
94+
<version>3.2.0</version>
95+
<configuration>
96+
<failOnError>false</failOnError>
97+
</configuration>
98+
<executions>
99+
<execution>
100+
<id>attach-javadocs</id>
101+
<goals>
102+
<goal>jar</goal>
103+
</goals>
104+
</execution>
105+
</executions>
106+
</plugin>
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-gpg-plugin</artifactId>
110+
<version>1.6</version>
111+
<executions>
112+
<execution>
113+
<id>sign-artifacts</id>
114+
<phase>verify</phase>
115+
<goals>
116+
<goal>sign</goal>
117+
</goals>
118+
</execution>
119+
</executions>
120+
</plugin>
70121
</plugins>
71122
</build>
72123

@@ -91,4 +142,16 @@
91142
<version>3.13.0</version>
92143
</dependency>
93144
</dependencies>
145+
146+
<distributionManagement>
147+
<repository>
148+
<id>ossrh</id>
149+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
150+
</repository>
151+
<snapshotRepository>
152+
<id>ossrh</id>
153+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
154+
</snapshotRepository>
155+
</distributionManagement>
156+
94157
</project>

0 commit comments

Comments
 (0)