| <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven</artifactId> | |
| <version>4.2.0-SNAPSHOT</version> | |
| </parent> | |
| <artifactId>apache-maven</artifactId> | |
| <packaging>pom</packaging> | |
| <name>Apache Maven Distribution</name> | |
| <description>The Apache Maven distribution, source and binary, in zip and tar.gz formats.</description> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-cli</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-embedder</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-core</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-compat</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-cli</groupId> | |
| <artifactId>commons-cli</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.wagon</groupId> | |
| <artifactId>wagon-http</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.wagon</groupId> | |
| <artifactId>wagon-file</artifactId> | |
| </dependency> | |
| <!-- CLI --> | |
| <!-- bridge from Apache Commons Logging (JCL) to SLF4J--> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>jcl-over-slf4j</artifactId> | |
| <version>${slf4jVersion}</version> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <!-- bridge from System.Logger to SLF4J (Platform Logging API, added by JEP 264) --> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-jdk-platform-logging</artifactId> | |
| <version>${slf4jVersion}</version> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <!-- bridge from java.util.logging (JUL) to SLF4J --> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>jul-to-slf4j</artifactId> | |
| <version>${slf4jVersion}</version> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.resolver</groupId> | |
| <artifactId>maven-resolver-connector-basic</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.resolver</groupId> | |
| <artifactId>maven-resolver-transport-file</artifactId> | |
| </dependency> | |
| <!-- HTTP/1.1, lowest priority, Java8+ (still must as some ITs force it) --> | |
| <dependency> | |
| <groupId>org.apache.maven.resolver</groupId> | |
| <artifactId>maven-resolver-transport-wagon</artifactId> | |
| </dependency> | |
| <!-- HTTP/1.1, default transport, Java8+ --> | |
| <dependency> | |
| <groupId>org.apache.maven.resolver</groupId> | |
| <artifactId>maven-resolver-transport-apache</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-logging</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jline</groupId> | |
| <artifactId>jline-reader</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jline</groupId> | |
| <artifactId>jline-terminal-jni</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jline</groupId> | |
| <artifactId>jline-terminal-ffm</artifactId> | |
| </dependency> | |
| <!-- (legacy) DI annotations --> | |
| <dependency> | |
| <groupId>javax.inject</groupId> | |
| <artifactId>javax.inject</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.annotation</groupId> | |
| <artifactId>jakarta.annotation-api</artifactId> | |
| </dependency> | |
| <!-- DI Runtime --> | |
| <dependency> | |
| <groupId>org.eclipse.sisu</groupId> | |
| <artifactId>org.eclipse.sisu.plexus</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.sisu</groupId> | |
| <artifactId>org.eclipse.sisu.inject</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.google.inject</groupId> | |
| <artifactId>guice</artifactId> | |
| <classifier>classes</classifier> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm</artifactId> | |
| </dependency> | |
| </dependencies> | |
| <pluginRepositories> | |
| <pluginRepository> | |
| <releases> | |
| <enabled>false</enabled> | |
| </releases> | |
| <snapshots> | |
| <enabled>true</enabled> | |
| </snapshots> | |
| <id>apache.snapshots</id> | |
| <url>https://repository.apache.org/snapshots/</url> | |
| </pluginRepository> | |
| </pluginRepositories> | |
| <build> | |
| <resources> | |
| <resource> | |
| <filtering>true</filtering> | |
| <directory>src/main/resources</directory> | |
| </resource> | |
| </resources> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>buildnumber-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>create-buildnumber</id> | |
| <goals> | |
| <goal>create</goal> | |
| </goals> | |
| <configuration> | |
| <doCheck>false</doCheck> | |
| <doUpdate>false</doUpdate> | |
| <revisionOnScmFailure>NON_CANONICAL</revisionOnScmFailure> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>unpack-jline-native</id> | |
| <goals> | |
| <goal>unpack-dependencies</goal> | |
| </goals> | |
| <configuration> | |
| <includeArtifactIds>jline-native</includeArtifactIds> | |
| <includes>org/jline/nativ/**</includes> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <!-- compiled here so that the launchers do not pay for source-launch compilation on every run --> | |
| <id>compile-jvm-config-parser</id> | |
| <goals> | |
| <goal>compile</goal> | |
| </goals> | |
| <configuration> | |
| <compileSourceRoots> | |
| <compileSourceRoot>${project.basedir}/src/assembly/maven/bin</compileSourceRoot> | |
| </compileSourceRoots> | |
| <includes> | |
| <include>JvmConfigParser.java</include> | |
| </includes> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>test-compile</id> | |
| <goals> | |
| <goal>testCompile</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <systemPropertyVariables> | |
| <basedir>${basedir}</basedir> | |
| </systemPropertyVariables> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>test</id> | |
| <goals> | |
| <goal>test</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>create-distro-packages</id> | |
| <goals> | |
| <goal>single</goal> | |
| </goals> | |
| <phase>package</phase> | |
| <configuration> | |
| <descriptors> | |
| <descriptor>src/assembly/bin.xml</descriptor> | |
| </descriptors> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>eu.maveniverse.maven.plugins</groupId> | |
| <artifactId>bom-builder3</artifactId> | |
| <version>1.3.4</version> | |
| <executions> | |
| <execution> | |
| <id>skinny-bom</id> | |
| <goals> | |
| <goal>build-bom</goal> | |
| </goals> | |
| <configuration> | |
| <bomClassifier>skinny</bomClassifier> | |
| <bomName>Maven Dependencies Skinny BOM</bomName> | |
| <bomDescription>Bill Of Materials for Apache Maven - Maven JARS only</bomDescription> | |
| <outputFilename>maven-skinny-bom.xml</outputFilename> | |
| <reactorDependencies>REACTOR</reactorDependencies> | |
| <transitiveDependencies>NONE</transitiveDependencies> | |
| <usePropertiesForVersion>true</usePropertiesForVersion> | |
| <attach>true</attach> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>fat-bom</id> | |
| <goals> | |
| <goal>build-bom</goal> | |
| </goals> | |
| <configuration> | |
| <bomClassifier>fat</bomClassifier> | |
| <bomName>Maven Dependencies Fat BOM</bomName> | |
| <bomDescription>Bill Of Materials for Apache Maven - All dependencies</bomDescription> | |
| <outputFilename>maven-fat-bom.xml</outputFilename> | |
| <reactorDependencies>REACTOR</reactorDependencies> | |
| <transitiveDependencies>CURRENT_PROJECT</transitiveDependencies> | |
| <usePropertiesForVersion>true</usePropertiesForVersion> | |
| <attach>true</attach> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <profiles> | |
| <profile> | |
| <id>create-distribution-in-dir</id> | |
| <activation> | |
| <property> | |
| <name>distributionTargetDir</name> | |
| </property> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-clean-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>clean-target-dir</id> | |
| <goals> | |
| <goal>clean</goal> | |
| </goals> | |
| <phase>prepare-package</phase> | |
| <configuration> | |
| <excludeDefaultDirectories>true</excludeDefaultDirectories> | |
| <filesets> | |
| <fileset> | |
| <directory>${distributionTargetDir}</directory> | |
| </fileset> | |
| </filesets> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>create-distribution-dir</id> | |
| <goals> | |
| <goal>single</goal> | |
| </goals> | |
| <phase>package</phase> | |
| <configuration> | |
| <finalName>./</finalName> | |
| <appendAssemblyId>false</appendAssemblyId> | |
| <attach>false</attach> | |
| <outputDirectory>${distributionTargetDir}</outputDirectory> | |
| <descriptors> | |
| <descriptor>src/assembly/dir.xml</descriptor> | |
| </descriptors> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>run-its</id> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>create-distribution-dir</id> | |
| <goals> | |
| <goal>single</goal> | |
| </goals> | |
| <phase>package</phase> | |
| <configuration> | |
| <finalName>./</finalName> | |
| <appendAssemblyId>false</appendAssemblyId> | |
| <attach>false</attach> | |
| <outputDirectory>${basedir}/target/maven</outputDirectory> | |
| <descriptors> | |
| <descriptor>src/assembly/dir.xml</descriptor> | |
| </descriptors> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>apache-release</id> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>make-src-assembly</id> | |
| <goals> | |
| <goal>single</goal> | |
| </goals> | |
| <phase>package</phase> | |
| <configuration> | |
| <descriptors> | |
| <descriptor>src/assembly/src.xml</descriptor> | |
| </descriptors> | |
| <tarLongFileMode>gnu</tarLongFileMode> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <!-- calculate checksums of source release for Apache dist area --> | |
| <plugin> | |
| <groupId>eu.maveniverse.maven.plugins</groupId> | |
| <artifactId>checksum-plugin3</artifactId> | |
| <executions> | |
| <execution> | |
| <id>source-release-checksum</id> | |
| <goals> | |
| <goal>project</goal> | |
| </goals> | |
| <phase>post-integration-test</phase> | |
| <configuration> | |
| <alg>SHA-512</alg> | |
| <includedClassifiers> | |
| <includedClassifier>src</includedClassifier> | |
| <includedClassifier>bin</includedClassifier> | |
| </includedClassifiers> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>push-to-atr</id> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.tooling</groupId> | |
| <artifactId>atr-maven-plugin</artifactId> | |
| <configuration> | |
| <project>maven</project> | |
| <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>upload-src-to-atr</id> | |
| <goals> | |
| <goal>upload</goal> | |
| </goals> | |
| <configuration> | |
| <directory>source</directory> | |
| <files> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-src.tar.gz</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-src.tar.gz.sha512</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-src.tar.gz.asc</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-src.zip</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-src.zip.sha512</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-src.zip.asc</file> | |
| </files> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>upload-bin-to-atr</id> | |
| <goals> | |
| <goal>upload</goal> | |
| </goals> | |
| <configuration> | |
| <directory>binaries</directory> | |
| <files> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-bin.tar.gz</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-bin.tar.gz.sha512</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-bin.tar.gz.asc</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-bin.zip</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-bin.zip.sha512</file> | |
| <file>${project.build.directory}/${project.artifactId}-${project.version}-bin.zip.asc</file> | |
| </files> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| <profile> | |
| <id>versionlessMavenDist</id> | |
| <build> | |
| <finalName>${project.artifactId}</finalName> | |
| </build> | |
| </profile> | |
| <!-- Runs the bin/mvn path conversion test as part of the build. The test is | |
| a POSIX shell script driving the launcher, so it only applies to the | |
| platforms that use bin/mvn; Windows ships and runs bin/mvn.cmd. --> | |
| <profile> | |
| <id>shell-script-tests</id> | |
| <activation> | |
| <os> | |
| <family>unix</family> | |
| </os> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <version>3.6.4</version> | |
| <executions> | |
| <execution> | |
| <id>test-mvn-path-conversion</id> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| <phase>test</phase> | |
| <configuration> | |
| <skip>${skipTests}</skip> | |
| <executable>sh</executable> | |
| <arguments> | |
| <argument>${project.basedir}/src/test/scripts/test-mvn-path-conversion.sh</argument> | |
| </arguments> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>test-mvn-fast-version</id> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| <phase>test</phase> | |
| <configuration> | |
| <skip>${skipTests}</skip> | |
| <executable>sh</executable> | |
| <arguments> | |
| <argument>${project.basedir}/src/test/scripts/test-mvn-fast-version.sh</argument> | |
| </arguments> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>test-mvn-args</id> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| <phase>test</phase> | |
| <configuration> | |
| <skip>${skipTests}</skip> | |
| <executable>sh</executable> | |
| <arguments> | |
| <argument>${project.basedir}/src/test/scripts/test-mvn-args.sh</argument> | |
| </arguments> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>test-mvn-jvm-config</id> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| <phase>test</phase> | |
| <configuration> | |
| <skip>${skipTests}</skip> | |
| <executable>sh</executable> | |
| <arguments> | |
| <argument>${project.basedir}/src/test/scripts/test-mvn-jvm-config.sh</argument> | |
| </arguments> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| </profiles> | |
| </project> |