| <?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.maven.resolver</groupId> |
| <artifactId>maven-resolver-transport-jdk-parent</artifactId> |
| <version>2.0.0-alpha-3</version> |
| </parent> |
| |
| <artifactId>maven-resolver-transport-jdk</artifactId> |
| <packaging>jar</packaging> |
| |
| <name>Maven Artifact Resolver Transport JDK (mr)</name> |
| <description>Maven Artifact Transport JDK Java 11+.</description> |
| |
| <properties> |
| <Automatic-Module-Name>org.apache.maven.resolver.transport.jdk</Automatic-Module-Name> |
| <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName> |
| |
| <javaVersion>11</javaVersion> |
| </properties> |
| |
| <dependencies> |
| <!-- These dependencies are actually included in this multi-release JAR --> |
| <dependency> |
| <groupId>org.apache.maven.resolver</groupId> |
| <artifactId>maven-resolver-transport-jdk-8</artifactId> |
| <version>${project.version}</version> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.resolver</groupId> |
| <artifactId>maven-resolver-transport-jdk-11</artifactId> |
| <version>${project.version}</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.resolver</groupId> |
| <artifactId>maven-resolver-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.resolver</groupId> |
| <artifactId>maven-resolver-spi</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.resolver</groupId> |
| <artifactId>maven-resolver-util</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>javax.inject</groupId> |
| <artifactId>javax.inject</artifactId> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <filtering>false</filtering> |
| <directory>${project.build.directory}/generated-resources</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-enforcer-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>enforce-bytecode-version</id> |
| <goals> |
| <goal>enforce</goal> |
| </goals> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>java8</id> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.maven.resolver</groupId> |
| <artifactId>maven-resolver-transport-jdk-8</artifactId> |
| <version>${project.version}</version> |
| <type>jar</type> |
| <outputDirectory>${project.build.directory}/generated-resources</outputDirectory> |
| <excludes>META-INF/maven/**</excludes> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| <execution> |
| <id>java11</id> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.maven.resolver</groupId> |
| <artifactId>maven-resolver-transport-jdk-11</artifactId> |
| <version>${project.version}</version> |
| <type>jar</type> |
| <outputDirectory>${project.build.directory}/generated-resources/META-INF/versions/11</outputDirectory> |
| <includes>**/*.class</includes> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
| <manifestEntries> |
| <Multi-Release>true</Multi-Release> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |