From 6a4b34960e443fa03f80aa36b055a7083f57dd39 Mon Sep 17 00:00:00 2001 From: Bas Couwenberg Date: Fri, 10 Nov 2023 14:43:41 +0100 Subject: [PATCH] Add support for Maven buildsystem. --- osmosis-apidb/pom.xml | 77 ++++++++++++++++++ osmosis-areafilter/pom.xml | 49 ++++++++++++ osmosis-core/generateJavaSources.sh | 24 ++++++ osmosis-core/pom.xml | 65 ++++++++++++++++ osmosis-dataset/pom.xml | 49 ++++++++++++ osmosis-extract/pom.xml | 58 ++++++++++++++ osmosis-hstore-jdbc/pom.xml | 36 +++++++++ osmosis-pbf/pom.xml | 60 ++++++++++++++ osmosis-pbf2/pom.xml | 76 ++++++++++++++++++ osmosis-pgsimple/pom.xml | 72 +++++++++++++++++ osmosis-pgsnapshot/pom.xml | 87 +++++++++++++++++++++ osmosis-replication/pom.xml | 46 +++++++++++ osmosis-set/pom.xml | 49 ++++++++++++ osmosis-tagfilter/pom.xml | 49 ++++++++++++ osmosis-tagtransform/pom.xml | 54 +++++++++++++ osmosis-testutil/pom.xml | 42 ++++++++++ osmosis-xml/pom.xml | 54 +++++++++++++ pom.xml | 117 ++++++++++++++++++++++++++++ 18 files changed, 1064 insertions(+) create mode 100644 osmosis-apidb/pom.xml create mode 100644 osmosis-areafilter/pom.xml create mode 100644 osmosis-core/generateJavaSources.sh create mode 100644 osmosis-core/pom.xml create mode 100644 osmosis-dataset/pom.xml create mode 100644 osmosis-extract/pom.xml create mode 100644 osmosis-hstore-jdbc/pom.xml create mode 100644 osmosis-pbf/pom.xml create mode 100644 osmosis-pbf2/pom.xml create mode 100644 osmosis-pgsimple/pom.xml create mode 100644 osmosis-pgsnapshot/pom.xml create mode 100644 osmosis-replication/pom.xml create mode 100644 osmosis-set/pom.xml create mode 100644 osmosis-tagfilter/pom.xml create mode 100644 osmosis-tagtransform/pom.xml create mode 100644 osmosis-testutil/pom.xml create mode 100644 osmosis-xml/pom.xml create mode 100644 pom.xml diff --git a/osmosis-apidb/pom.xml b/osmosis-apidb/pom.xml new file mode 100644 index 000000000..d43135556 --- /dev/null +++ b/osmosis-apidb/pom.xml @@ -0,0 +1,77 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-apidb + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + org.openstreetmap.osmosis + osmosis-replication + ${project.version} + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + + + + commons-dbcp + commons-dbcp + ${commons-dbcp.version} + + + org.springframework + spring-jdbc + ${spring.version} + + + + org.postgresql + postgresql + ${postgresql.version} + runtime + + + mysql + mysql-connector-java + ${mysql.version} + runtime + + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-apidb.skip-tests} + + + + + diff --git a/osmosis-areafilter/pom.xml b/osmosis-areafilter/pom.xml new file mode 100644 index 000000000..06a3a4c4d --- /dev/null +++ b/osmosis-areafilter/pom.xml @@ -0,0 +1,49 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-areafilter + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-areafilter.skip-tests} + + + + + diff --git a/osmosis-core/generateJavaSources.sh b/osmosis-core/generateJavaSources.sh new file mode 100644 index 000000000..27658685d --- /dev/null +++ b/osmosis-core/generateJavaSources.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +SOURCE_DIR="$(dirname "$0")" +SOURCE_FILE="${SOURCE_DIR}/src/main/java/org/openstreetmap/osmosis/core/OsmosisConstants.java" +TEMPLATE_FILE="${SOURCE_FILE}.template" + +if [ -z "${VERSION}" ]; then + PARENT_DIR="$(dirname "${SOURCE_DIR}")" + SCRIPT_FILE="${PARENT_DIR}/osmosis-version.sh" + + if [ ! -r "${SCRIPT_FILE}" ]; then + echo "Error: Cannot read file: ${SCRIPT_FILE}" + exit 1 + fi + + VERSION="$(sh "${SCRIPT_FILE}")" +fi + +if [ ! -r "${TEMPLATE_FILE}" ]; then + echo "Error: Cannot read file: ${TEMPLATE_FILE}" + exit 1 +fi + +sed "s/no-version-specified/${VERSION}/g" "${TEMPLATE_FILE}" > "${SOURCE_FILE}" diff --git a/osmosis-core/pom.xml b/osmosis-core/pom.xml new file mode 100644 index 000000000..fe6526aca --- /dev/null +++ b/osmosis-core/pom.xml @@ -0,0 +1,65 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-core + jar + + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + generateJavaSources + generate-sources + + exec + + + + + sh + + generateJavaSources.sh + + + ${project.version} + + + + + maven-clean-plugin + 3.2.0 + + + + src/main/java/org/openstreetmap/osmosis/core + + OsmosisConstants.java + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-core.skip-tests} + + + + + diff --git a/osmosis-dataset/pom.xml b/osmosis-dataset/pom.xml new file mode 100644 index 000000000..5c2bf883a --- /dev/null +++ b/osmosis-dataset/pom.xml @@ -0,0 +1,49 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-dataset + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-dataset.skip-tests} + + + + + diff --git a/osmosis-extract/pom.xml b/osmosis-extract/pom.xml new file mode 100644 index 000000000..5c635767d --- /dev/null +++ b/osmosis-extract/pom.xml @@ -0,0 +1,58 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-extract + jar + + + + org.openstreetmap.osmosis + osmosis-apidb + ${project.version} + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + org.openstreetmap.osmosis + osmosis-replication + ${project.version} + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-extract.skip-tests} + + + + + diff --git a/osmosis-hstore-jdbc/pom.xml b/osmosis-hstore-jdbc/pom.xml new file mode 100644 index 000000000..594ee8066 --- /dev/null +++ b/osmosis-hstore-jdbc/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-hstore-jdbc + jar + + + + org.postgresql + postgresql + ${postgresql.version} + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-hstore-jdbc.skip-tests} + + + + + diff --git a/osmosis-pbf/pom.xml b/osmosis-pbf/pom.xml new file mode 100644 index 000000000..3b5ab08df --- /dev/null +++ b/osmosis-pbf/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-pbf + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + + com.google.protobuf + protobuf-java + ${protobuf.version} + + + org.openstreetmap.pbf + osmpbf + ${osmpbf.version} + + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-pbf.skip-tests} + + + + + diff --git a/osmosis-pbf2/pom.xml b/osmosis-pbf2/pom.xml new file mode 100644 index 000000000..2fc70b357 --- /dev/null +++ b/osmosis-pbf2/pom.xml @@ -0,0 +1,76 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-pbf2 + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + + com.google.guava + guava + ${guava.version} + + + com.google.protobuf + protobuf-java + ${protobuf.version} + + + commons-io + commons-io + ${commons-io.version} + + + org.openstreetmap.pbf + osmpbf + ${osmpbf.version} + + + + org.openstreetmap.osmosis + osmosis-pbf + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-pbf2.skip-tests} + + + + + diff --git a/osmosis-pgsimple/pom.xml b/osmosis-pgsimple/pom.xml new file mode 100644 index 000000000..02b44cde9 --- /dev/null +++ b/osmosis-pgsimple/pom.xml @@ -0,0 +1,72 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-pgsimple + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + + net.postgis + postgis-jdbc + ${postgis.version} + + + net.postgis + postgis-stubs + + + + + org.postgresql + postgresql + ${postgresql.version} + + + + org.openstreetmap.osmosis + osmosis-dataset + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-pgsimple.skip-tests} + + + + + diff --git a/osmosis-pgsnapshot/pom.xml b/osmosis-pgsnapshot/pom.xml new file mode 100644 index 000000000..59769c8e7 --- /dev/null +++ b/osmosis-pgsnapshot/pom.xml @@ -0,0 +1,87 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-pgsnapshot + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + org.openstreetmap.osmosis + osmosis-hstore-jdbc + ${project.version} + + + + commons-dbcp + commons-dbcp + ${commons-dbcp.version} + + + net.postgis + postgis-jdbc + ${postgis.version} + + + net.postgis + postgis-stubs + + + + + org.springframework + spring-jdbc + ${spring.version} + + + org.postgresql + postgresql + ${postgresql.version} + + + + org.openstreetmap.osmosis + osmosis-dataset + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-pgsnapshot.skip-tests} + + + + + diff --git a/osmosis-replication/pom.xml b/osmosis-replication/pom.xml new file mode 100644 index 000000000..ccc565b2b --- /dev/null +++ b/osmosis-replication/pom.xml @@ -0,0 +1,46 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-replication + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + org.openstreetmap.osmosis + osmosis-set + ${project.version} + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-replication.skip-tests} + + + + + diff --git a/osmosis-set/pom.xml b/osmosis-set/pom.xml new file mode 100644 index 000000000..40e64b4d8 --- /dev/null +++ b/osmosis-set/pom.xml @@ -0,0 +1,49 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-set + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-set.skip-tests + + + + + diff --git a/osmosis-tagfilter/pom.xml b/osmosis-tagfilter/pom.xml new file mode 100644 index 000000000..7851796d2 --- /dev/null +++ b/osmosis-tagfilter/pom.xml @@ -0,0 +1,49 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-tagfilter + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-tagfilter.skip-tests} + + + + + diff --git a/osmosis-tagtransform/pom.xml b/osmosis-tagtransform/pom.xml new file mode 100644 index 000000000..d23832f7d --- /dev/null +++ b/osmosis-tagtransform/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-tagtransform + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + org.openstreetmap.osmosis + osmosis-xml + ${project.version} + + + + org.apache.commons + commons-csv + ${commons-csv.version} + + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-tagtransform.skip-tests} + + + + + diff --git a/osmosis-testutil/pom.xml b/osmosis-testutil/pom.xml new file mode 100644 index 000000000..f7dba4594 --- /dev/null +++ b/osmosis-testutil/pom.xml @@ -0,0 +1,42 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-testutil + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + + junit + junit + ${junit.version} + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-testutil.skip-tests} + + + + + diff --git a/osmosis-xml/pom.xml b/osmosis-xml/pom.xml new file mode 100644 index 000000000..24cca9747 --- /dev/null +++ b/osmosis-xml/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + + + org.openstreetmap.osmosis + osmosis + 0.49.1 + .. + + + osmosis-xml + jar + + + + org.openstreetmap.osmosis + osmosis-core + ${project.version} + + + + commons-codec + commons-codec + ${commons-codec.version} + + + org.apache.commons + commons-compress + ${commons-compress.version} + + + + org.openstreetmap.osmosis + osmosis-testutil + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${osmosis-xml.skip-tests} + + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..67ba4006d --- /dev/null +++ b/pom.xml @@ -0,0 +1,117 @@ + + + 4.0.0 + + org.openstreetmap.osmosis + osmosis + 0.49.1 + pom + + osmosis + Osmosis is a Java application and library for processing OSM data. + http://wiki.openstreetmap.org/wiki/Osmosis + + + + Public Domain + + + + + + brett + Brett Henderson + brett@bretth.com + + + + + https://github.com/openstreetmap/osmosis + git://github.com/openstreetmap/osmosis.git + ssh://git@github.com/openstreetmap/osmosis.git + + + + UTF-8 + 3.10.1 + 2.22.1 + + 17 + + 1.16.0 + 1.24.0 + 1.10.0 + 1.4 + 2.15.0 + 32.1.3-jre + 4.13.2 + 8.0.33 + 1.5.0 + 2021.1.0 + 42.6.0 + 3.25.0 + 5.3.30 + + true + false + false + false + true + false + false + false + true + true + false + true + false + false + false + false + + + + + junit + junit + ${junit.version} + test + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + ${java.min.version} + ${java.min.version} + + + + + + + + osmosis-apidb + osmosis-areafilter + osmosis-core + osmosis-dataset + osmosis-extract + osmosis-hstore-jdbc + osmosis-pbf + osmosis-pbf2 + osmosis-pgsimple + osmosis-pgsnapshot + osmosis-replication + osmosis-set + osmosis-tagfilter + osmosis-tagtransform + osmosis-testutil + osmosis-xml + +