kopia lustrzana https://github.com/onthegomap/planetiler
184 wiersze
5.8 KiB
XML
184 wiersze
5.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>planetiler-dist</artifactId>
|
|
|
|
<parent>
|
|
<groupId>com.onthegomap.planetiler</groupId>
|
|
<artifactId>planetiler-parent</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<mainClass>com.onthegomap.planetiler.Main</mainClass>
|
|
<!--
|
|
compile against an earlier version so that Main runs but can emit a more readable
|
|
error when running on an older version of Java
|
|
-->
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
<image.version>${project.version}</image.version>
|
|
<image>ghcr.io/onthegomap/planetiler:${image.version}</image>
|
|
<assembly-phase>package</assembly-phase>
|
|
<jib.platform-arch>amd64</jib.platform-arch>
|
|
<jib.platform-os>linux</jib.platform-os>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.onthegomap.planetiler</groupId>
|
|
<artifactId>planetiler-benchmarks</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openmaptiles</groupId>
|
|
<artifactId>planetiler-openmaptiles</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.onthegomap.planetiler</groupId>
|
|
<artifactId>planetiler-custommap</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.onthegomap.planetiler</groupId>
|
|
<artifactId>planetiler-examples</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
</dependency>
|
|
<!-- Add sources to the jar to improve IDE experience when using jar with deps -->
|
|
<dependency>
|
|
<groupId>com.onthegomap.planetiler</groupId>
|
|
<artifactId>planetiler-core</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
<classifier>sources</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.locationtech.jts</groupId>
|
|
<artifactId>jts-core</artifactId>
|
|
<version>${jts.version}</version>
|
|
<classifier>sources</classifier>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Create a container distribution -->
|
|
<plugin>
|
|
<groupId>com.google.cloud.tools</groupId>
|
|
<artifactId>jib-maven-plugin</artifactId>
|
|
<configuration>
|
|
<skip>false</skip>
|
|
<from>
|
|
<image>
|
|
eclipse-temurin:23-jdk
|
|
</image>
|
|
<platforms>
|
|
<platform>
|
|
<architecture>${jib.platform-arch}</architecture>
|
|
<os>${jib.platform-os}</os>
|
|
</platform>
|
|
</platforms>
|
|
</from>
|
|
<to>
|
|
<image>${image}</image>
|
|
</to>
|
|
<container>
|
|
<labels>
|
|
<org.opencontainers.image.source>
|
|
https://github.com/onthegomap/planetiler
|
|
</org.opencontainers.image.source>
|
|
</labels>
|
|
<mainClass>${mainClass}</mainClass>
|
|
<creationTime>${maven.build.timestamp}</creationTime>
|
|
<filesModificationTime>${maven.build.timestamp}</filesModificationTime>
|
|
</container>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Create an executable jar from "mvn package" goal -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>3.7.1</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.onthegomap.planetiler</groupId>
|
|
<artifactId>planetiler-core</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Multi-Release>true</Multi-Release>
|
|
</manifestEntries>
|
|
<manifest>
|
|
<mainClass>${mainClass}</mainClass>
|
|
</manifest>
|
|
</archive>
|
|
<descriptorRefs>
|
|
<descriptorRef>with-deps</descriptorRef>
|
|
</descriptorRefs>
|
|
<attach>false</attach>
|
|
</configuration>
|
|
|
|
<executions>
|
|
<execution>
|
|
<id>make-assembly</id>
|
|
<phase>${assembly-phase}</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<!-- we don't want to deploy this module -->
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<profile>
|
|
<!-- use -Pskip-assembly to skip building executable jars -->
|
|
<id>skip-assembly</id>
|
|
<properties>
|
|
<assembly-phase>none</assembly-phase>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>jib-multi-arch</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.google.cloud.tools</groupId>
|
|
<artifactId>jib-maven-plugin</artifactId>
|
|
<configuration>
|
|
<from>
|
|
<platforms>
|
|
<platform>
|
|
<architecture>amd64</architecture>
|
|
<os>linux</os>
|
|
</platform>
|
|
<platform>
|
|
<architecture>arm64</architecture>
|
|
<os>linux</os>
|
|
</platform>
|
|
</platforms>
|
|
</from>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|