| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to you under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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> |
| |
| <parent> |
| <groupId>org.apache.baremaps</groupId> |
| <artifactId>baremaps</artifactId> |
| <version>0.7.4-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>baremaps-cli</artifactId> |
| <name>baremaps-cli</name> |
| |
| <properties> |
| <license.directory>${project.build.directory}/generated-sources/license</license.directory> |
| <license.filename>LICENSE</license.filename> |
| <thirdparty.directory>${project.build.directory}/generated-sources/license</thirdparty.directory> |
| <thirdparty.filename>THIRD-PARTY</thirdparty.filename> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>info.picocli</groupId> |
| <artifactId>picocli</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.baremaps</groupId> |
| <artifactId>baremaps-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.baremaps</groupId> |
| <artifactId>baremaps-server</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-jul</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j2-impl</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <filtering>true</filtering> |
| <directory>src/main/resources</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>com.google.cloud.tools</groupId> |
| <artifactId>jib-maven-plugin</artifactId> |
| <version>${version.plugin.jib-maven-plugin}</version> |
| <configuration> |
| <from> |
| <image>eclipse-temurin:17</image> |
| </from> |
| <to> |
| <image>registry.hub.docker.com/baremaps/baremaps</image> |
| <tags>v${project.version}</tags> |
| </to> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>3.1.0</version> |
| <executions> |
| <execution> |
| <id>default-cli</id> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <target> |
| <concat destfile="${license.directory}/${license.filename}" force="yes"> |
| <fileset dir="${maven.multiModuleProjectDirectory}/"> |
| <include name="${license.filename}" /> |
| </fileset> |
| <fileset dir="${thirdparty.directory}"> |
| <include name="${thirdparty.filename}" /> |
| </fileset> |
| </concat> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>3.3.0</version> |
| <executions> |
| <execution> |
| <id>src</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <finalName>apache-${project.parent.artifactId}-${project.parent.version}-incubating-src</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| <tarLongFileMode>posix</tarLongFileMode> |
| <descriptors> |
| <descriptor>src/assembly/src.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| <execution> |
| <id>bin</id> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <finalName>apache-${project.parent.artifactId}-${project.parent.version}-incubating-bin</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| <tarLongFileMode>posix</tarLongFileMode> |
| <descriptors> |
| <descriptor>src/assembly/bin.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${version.plugin.maven-compiler-plugin}</version> |
| <configuration> |
| <annotationProcessorPaths> |
| <path> |
| <groupId>info.picocli</groupId> |
| <artifactId>picocli-codegen</artifactId> |
| <version>${version.lib.picocli}</version> |
| </path> |
| </annotationProcessorPaths> |
| <compilerArgs> |
| <arg>-Aproject=${project.groupId}/${project.artifactId}</arg> |
| </compilerArgs> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>license-maven-plugin</artifactId> |
| <version>2.2.0</version> |
| <configuration> |
| <force>true</force> |
| <excludedScopes>test,provided</excludedScopes> |
| <excludeTransitiveDependencies>true</excludeTransitiveDependencies> |
| <outputDirectory>${thirdparty.directory}</outputDirectory> |
| <overrideFile>${basedir}/src/license/override.properties</overrideFile> |
| </configuration> |
| <executions> |
| <!-- Generate the third party file --> |
| <execution> |
| <id>generate-third-party</id> |
| <goals> |
| <goal>add-third-party</goal> |
| </goals> |
| <phase>prepare-package</phase> |
| <configuration> |
| <thirdPartyFilename>${thirdparty.filename}</thirdPartyFilename> |
| <fileTemplate>${basedir}/src/license/bundle.ftl</fileTemplate> |
| </configuration> |
| </execution> |
| <!-- Generate the override.properties file --> |
| <execution> |
| <id>generate-override</id> |
| <goals> |
| <goal>add-third-party</goal> |
| </goals> |
| <phase>generate-sources</phase> |
| <configuration> |
| <thirdPartyFilename>override.properties</thirdPartyFilename> |
| <fileTemplate>${basedir}/src/license/override.ftl</fileTemplate> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |