| <?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.plugins</groupId> | |
| <artifactId>maven-plugins</artifactId> | |
| <version>50</version> | |
| <relativePath /> | |
| </parent> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <version>3.12.0-SNAPSHOT</version> | |
| <packaging>maven-plugin</packaging> | |
| <name>Apache Maven Dependency Plugin</name> | |
| <description>Provides utility goals to work with dependencies like copying, unpacking, analyzing, resolving and many more.</description> | |
| <contributors> | |
| <contributor> | |
| <name>Bakito</name> | |
| </contributor> | |
| <contributor> | |
| <name>Baptiste MATHUS</name> | |
| </contributor> | |
| <contributor> | |
| <name>Kalle Korhonen</name> | |
| </contributor> | |
| <contributor> | |
| <name>Ryan Heinen</name> | |
| </contributor> | |
| <contributor> | |
| <name>Andreas Kuhtz</name> | |
| </contributor> | |
| <contributor> | |
| <name>Holger Mense</name> | |
| </contributor> | |
| <contributor> | |
| <name>Markus Karg</name> | |
| </contributor> | |
| <contributor> | |
| <name>Maarten Mulders</name> | |
| </contributor> | |
| <contributor> | |
| <name>Lisa Hardy</name> | |
| </contributor> | |
| </contributors> | |
| <prerequisites> | |
| <maven>3.9.0</maven> | |
| </prerequisites> | |
| <scm> | |
| <connection>scm:git:https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git</connection> | |
| <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git</developerConnection> | |
| <tag>HEAD</tag> | |
| <url>https://github.com/apache/maven-dependency-plugin/tree/${project.scm.tag}</url> | |
| </scm> | |
| <issueManagement> | |
| <system>GitHub Issues</system> | |
| <url>https://github.com/apache/maven-dependency-plugin/issues</url> | |
| </issueManagement> | |
| <ciManagement> | |
| <system>GitHub</system> | |
| <url>https://github.com/apache/maven-dependency-plugin/actions</url> | |
| </ciManagement> | |
| <distributionManagement> | |
| <site> | |
| <id>apache.website</id> | |
| <url>scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path}</url> | |
| </site> | |
| </distributionManagement> | |
| <properties> | |
| <invoker.parallelThreads>0.75C</invoker.parallelThreads> | |
| <mavenVersion>3.9.16</mavenVersion> | |
| <resolverVersion>1.9.27</resolverVersion> | |
| <slf4jVersion>1.7.36</slf4jVersion> | |
| <mockito.version>4.11.0</mockito.version> | |
| <plexus-archiver.version>4.16.0</plexus-archiver.version> | |
| <pluginTestingVersion>3.5.1</pluginTestingVersion> | |
| <!-- strict check by dependency:analyze-only --> | |
| <enforce.dependency.declarations>true</enforce.dependency.declarations> | |
| <project.build.outputTimestamp>2026-05-24T17:18:36Z</project.build.outputTimestamp> | |
| </properties> | |
| <dependencyManagement> | |
| <dependencies> | |
| <dependency> | |
| <!-- maven-core 3.9.16 pulls asm 9.9.1 ahead of the analyzer's 9.10.1; JDK 27 needs 9.11.1 --> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm</artifactId> | |
| <version>9.11.1</version> | |
| </dependency> | |
| </dependencies> | |
| </dependencyManagement> | |
| <dependencies> | |
| <!-- maven --> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-artifact</artifactId> | |
| <version>${mavenVersion}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-plugin-api</artifactId> | |
| <version>${mavenVersion}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-model</artifactId> | |
| <version>${mavenVersion}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-core</artifactId> | |
| <version>${mavenVersion}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-repository-metadata</artifactId> | |
| <version>${mavenVersion}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven</groupId> | |
| <artifactId>maven-settings</artifactId> | |
| <version>${mavenVersion}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <!-- domtrip --> | |
| <dependency> | |
| <groupId>eu.maveniverse.maven.domtrip</groupId> | |
| <artifactId>domtrip-maven</artifactId> | |
| <version>1.8.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>eu.maveniverse.maven.domtrip</groupId> | |
| <artifactId>domtrip-core</artifactId> | |
| <version>1.8.0</version> | |
| </dependency> | |
| <!-- doxia --> | |
| <dependency> | |
| <groupId>org.apache.maven.doxia</groupId> | |
| <artifactId>doxia-sink-api</artifactId> | |
| <version>2.2.0</version> | |
| </dependency> | |
| <!-- reporting --> | |
| <dependency> | |
| <groupId>org.apache.maven.reporting</groupId> | |
| <artifactId>maven-reporting-api</artifactId> | |
| <version>4.1.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.reporting</groupId> | |
| <artifactId>maven-reporting-impl</artifactId> | |
| <version>4.0.0</version> | |
| </dependency> | |
| <!-- plexus --> | |
| <dependency> | |
| <groupId>org.codehaus.plexus</groupId> | |
| <artifactId>plexus-archiver</artifactId> | |
| <version>${plexus-archiver.version}</version> | |
| </dependency> | |
| <!-- MNG-6607: needs to be overridden for commons-compress otherwise it will appear earlier in the tree --> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-lang3</artifactId> | |
| <version>3.22.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.codehaus.plexus</groupId> | |
| <artifactId>plexus-utils</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.codehaus.plexus</groupId> | |
| <artifactId>plexus-xml</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.codehaus.plexus</groupId> | |
| <artifactId>plexus-io</artifactId> | |
| <version>3.8.1</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.codehaus.plexus</groupId> | |
| <artifactId>plexus-i18n</artifactId> | |
| <version>1.2.0</version> | |
| </dependency> | |
| <!-- shared --> | |
| <dependency> | |
| <groupId>org.apache.maven.shared</groupId> | |
| <artifactId>maven-dependency-analyzer</artifactId> | |
| <version>1.18.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.shared</groupId> | |
| <artifactId>maven-common-artifact-filters</artifactId> | |
| <version>3.4.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.shared</groupId> | |
| <artifactId>maven-shared-utils</artifactId> | |
| <version>3.5.0</version> | |
| </dependency> | |
| <!-- dependencies to annotations --> | |
| <dependency> | |
| <groupId>org.apache.maven.plugin-tools</groupId> | |
| <artifactId>maven-plugin-annotations</artifactId> | |
| <version>${version.maven-plugin-tools}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.inject</groupId> | |
| <artifactId>javax.inject</artifactId> | |
| <version>1</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.resolver</groupId> | |
| <artifactId>maven-resolver-api</artifactId> | |
| <version>${resolverVersion}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.resolver</groupId> | |
| <artifactId>maven-resolver-util</artifactId> | |
| <version>${resolverVersion}</version> | |
| </dependency> | |
| <!-- IDE build support (https://github.com/codehaus-plexus/plexus-build-api) --> | |
| <dependency> | |
| <groupId>org.sonatype.plexus</groupId> | |
| <artifactId>plexus-build-api</artifactId> | |
| <version>0.0.7</version> | |
| <!-- stick with old GAV until https://github.com/eclipse-m2e/m2e-core/issues/944 is fixed --> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-api</artifactId> | |
| <version>${slf4jVersion}</version> | |
| </dependency> | |
| <!-- promote dependencies from transitive ones since we do use them in render-dependencies mojo --> | |
| <dependency> | |
| <groupId>org.apache.velocity</groupId> | |
| <artifactId>velocity-engine-core</artifactId> | |
| <version>2.4.1</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.velocity.tools</groupId> | |
| <artifactId>velocity-tools-generic</artifactId> | |
| <version>3.1</version> | |
| </dependency> | |
| <!-- test --> | |
| <dependency> | |
| <groupId>org.apache.maven.resolver</groupId> | |
| <artifactId>maven-resolver-connector-basic</artifactId> | |
| <version>${resolverVersion}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.resolver</groupId> | |
| <artifactId>maven-resolver-transport-file</artifactId> | |
| <version>${resolverVersion}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.resolver</groupId> | |
| <artifactId>maven-resolver-transport-http</artifactId> | |
| <version>${resolverVersion}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.junit.jupiter</groupId> | |
| <artifactId>junit-jupiter-api</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.junit.jupiter</groupId> | |
| <artifactId>junit-jupiter-params</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish</groupId> | |
| <artifactId>jakarta.json</artifactId> | |
| <version>2.0.1</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.maven.plugin-testing</groupId> | |
| <artifactId>maven-plugin-testing-harness</artifactId> | |
| <version>${pluginTestingVersion}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.mockito</groupId> | |
| <artifactId>mockito-core</artifactId> | |
| <version>${mockito.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.mockito</groupId> | |
| <artifactId>mockito-junit-jupiter</artifactId> | |
| <version>${mockito.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.assertj</groupId> | |
| <artifactId>assertj-core</artifactId> | |
| <version>3.27.7</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-simple</artifactId> | |
| <version>${slf4jVersion}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.rat</groupId> | |
| <artifactId>apache-rat-plugin</artifactId> | |
| <configuration> | |
| <inputExcludes> | |
| <!-- | |
| These files contain results for integration tests which can't contain license header | |
| otherwise the IT's will fail. | |
| --> | |
| <exclude>src/it/projects/**/expected*.txt</exclude> | |
| <!-- These files contain expected versions for unit tests --> | |
| <exclude>src/test/resources/unit/verbose-serializer-test/*</exclude> | |
| <!-- | |
| These files contain real repository artifacts. | |
| --> | |
| <exclude>src/test/resources/unit/get-test/repository/test/test/1.0/test-1.0.jar.sha1</exclude> | |
| <exclude>src/test/resources/unit/get-test/repository/test/test/1.0/test-1.0.pom.sha1</exclude> | |
| <!-- | |
| Files with test data. | |
| --> | |
| <exclude>src/test/resources/unit/list-test/testListClasses*.txt</exclude> | |
| </inputExcludes> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-checkstyle-plugin</artifactId> | |
| <configuration> | |
| <suppressionsLocation>src/config/checkstyle-suppressions.xml</suppressionsLocation> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>analyze</id> | |
| <configuration> | |
| <failOnWarning>true</failOnWarning> | |
| <ignoredUnusedDeclaredDependencies combine.children="append"> | |
| <!-- used in tests runtime --> | |
| <ignoredUnusedDeclaredDependency>org.apache.maven.resolver:maven-resolver-connector-basic</ignoredUnusedDeclaredDependency> | |
| <ignoredUnusedDeclaredDependency>org.apache.maven.resolver:maven-resolver-transport-file</ignoredUnusedDeclaredDependency> | |
| <ignoredUnusedDeclaredDependency>org.apache.maven.resolver:maven-resolver-transport-http</ignoredUnusedDeclaredDependency> | |
| </ignoredUnusedDeclaredDependencies> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <!-- Need more heap space in order to run the unit tests !--> | |
| <argLine>-Xmx512m</argLine> | |
| <rerunFailingTestsCount>2</rerunFailingTestsCount> | |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.eclipse.sisu</groupId> | |
| <artifactId>sisu-maven-plugin</artifactId> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <profiles> | |
| <profile> | |
| <id>run-its</id> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-invoker-plugin</artifactId> | |
| <configuration> | |
| <goals> | |
| <goal>clean</goal> | |
| <goal>process-sources</goal> | |
| </goals> | |
| <projectsDirectory>src/it/projects</projectsDirectory> | |
| <pomExcludes> | |
| <pomExclude>purge-local-repository-bad-pom/pom.xml</pomExclude> | |
| </pomExcludes> | |
| <pomIncludes> | |
| <pomInclude>*/pom.xml</pomInclude> | |
| <pomInclude>add-dependency/*/pom.xml</pomInclude> | |
| <pomInclude>remove-dependency/*/pom.xml</pomInclude> | |
| <pomInclude>purge-local-repository-without-pom</pomInclude> | |
| </pomIncludes> | |
| <!-- for mrm --> | |
| <settingsFile>src/it/mrm/settings.xml</settingsFile> | |
| <addTestClassPath>true</addTestClassPath> | |
| <parallelThreads>${invoker.parallelThreads}</parallelThreads> | |
| <environmentVariables> | |
| <!-- each IT is a short-lived JVM: C2 compilation and parallel GC only add startup time --> | |
| <JAVA_TOOL_OPTIONS>-XX:TieredStopAtLevel=1 -XX:+UseSerialGC</JAVA_TOOL_OPTIONS> | |
| </environmentVariables> | |
| </configuration> | |
| <dependencies> | |
| <!-- dependencies used only in verification scripts --> | |
| <dependency> | |
| <groupId>org.jsoup</groupId> | |
| <artifactId>jsoup</artifactId> | |
| <version>1.24.1</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>mrm-maven-plugin</artifactId> | |
| <version>1.8.0</version> | |
| <configuration> | |
| <propertyName>repository.proxy.url</propertyName> | |
| <repositories> | |
| <mockRepo> | |
| <source>src/it/mrm/repository</source> | |
| <cloneTo>${project.build.directory}/mock-repo</cloneTo> | |
| </mockRepo> | |
| <localRepo> | |
| <source>${project.build.directory}/local-repo</source> | |
| </localRepo> | |
| <proxyRepo /> | |
| </repositories> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>start</goal> | |
| <goal>stop</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| </profiles> | |
| </project> |