2010-08-24 18:46:07 -04:00
|
|
|
<?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.
|
|
|
|
-->
|
2019-11-07 10:16:39 -05:00
|
|
|
<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">
|
2010-08-24 18:46:07 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven</artifactId>
|
2023-12-18 11:27:24 -05:00
|
|
|
<version>4.0.0-alpha-11-SNAPSHOT</version>
|
2010-08-24 18:46:07 -04:00
|
|
|
</parent>
|
|
|
|
|
2016-12-11 17:36:04 -05:00
|
|
|
<artifactId>maven-resolver-provider</artifactId>
|
2010-08-24 18:46:07 -04:00
|
|
|
|
2016-12-11 17:36:04 -05:00
|
|
|
<name>Maven Artifact Resolver Provider</name>
|
2016-11-06 06:13:32 -05:00
|
|
|
<description>Extensions to Maven Resolver for utilizing Maven POM and repository metadata.</description>
|
2010-08-24 18:46:07 -04:00
|
|
|
|
|
|
|
<dependencies>
|
2021-09-19 23:52:32 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven-artifact</artifactId>
|
|
|
|
</dependency>
|
2010-11-02 10:28:14 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven-model</artifactId>
|
|
|
|
</dependency>
|
2021-09-19 23:52:32 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven-builder-support</artifactId>
|
|
|
|
</dependency>
|
2010-08-24 18:46:07 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven-model-builder</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven</groupId>
|
|
|
|
<artifactId>maven-repository-metadata</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2016-11-06 06:13:32 -05:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
|
|
|
<artifactId>maven-resolver-api</artifactId>
|
2010-08-24 18:46:07 -04:00
|
|
|
</dependency>
|
2010-11-02 10:28:14 -04:00
|
|
|
<dependency>
|
2016-11-06 06:13:32 -05:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
|
|
|
<artifactId>maven-resolver-spi</artifactId>
|
2010-11-02 10:28:14 -04:00
|
|
|
</dependency>
|
2010-08-24 18:46:07 -04:00
|
|
|
<dependency>
|
2016-11-06 06:13:32 -05:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
|
|
|
<artifactId>maven-resolver-util</artifactId>
|
2010-08-24 18:46:07 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2016-11-06 06:13:32 -05:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
|
|
|
<artifactId>maven-resolver-impl</artifactId>
|
2010-08-24 18:46:07 -04:00
|
|
|
</dependency>
|
2017-05-16 09:27:22 -04:00
|
|
|
<dependency>
|
2023-12-13 17:19:20 -05:00
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
2021-01-05 17:00:26 -05:00
|
|
|
</dependency>
|
2023-12-13 17:19:20 -05:00
|
|
|
|
2021-01-05 17:00:26 -05:00
|
|
|
<dependency>
|
2023-12-13 17:19:20 -05:00
|
|
|
<groupId>javax.inject</groupId>
|
|
|
|
<artifactId>javax.inject</artifactId>
|
|
|
|
<scope>provided</scope>
|
2021-01-05 17:00:26 -05:00
|
|
|
</dependency>
|
[MNG-7959] User controlled relocations (#1339)
With some improvements. It accepts user property with CSV entries for relocations.
To toy with it, use `-Dmaven.relocations.entries` user property, for example create `.mvn/maven.config` file with contents:
```
-Dmaven.relocations.entries=entry1,entry2,...
```
It accepts CSV (comma delimited) of entries, while entry form is as:
```
GAV>GAV
```
Where left GAV can contain `*` for any elem (so `*:*:*` would mean ALL, something you don't want). Right GAV is either fully specified, or also can contain `*`, then it behaves as "ordinary relocation": the coordinate is preserved from relocated artifact. Finally, if right hand GAV is absent (line looks like "GAV>"). the left hand matching GAV is banned fully (from resolving).
Note: the ">" means project level, while ">>" means global (whole session level, so even plugins will get relocated artifacts) relocation.
Examples:
```
-Dmaven.relocations.entries=org.foo:*:*>,org.here:*:*>org.there:*:*,javax.inject:javax.inject:1>>jakarta.inject:jakarta.inject:1.0.5
```
Meaning: 3 entries, ban `org.foo` group (exactly, so `org.foo.bar` is allowed), relocate `org.here` to `org.there` and finally **globally relocate** (see ">>") `javax.inject:javax.inject:1` to `jakarta.inject:jakarta.inject:1.0.5`
---
https://issues.apache.org/jira/browse/MNG-7959
2023-12-18 05:34:30 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.sisu</groupId>
|
|
|
|
<artifactId>org.eclipse.sisu.plexus</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.sisu</groupId>
|
|
|
|
<artifactId>org.eclipse.sisu.inject</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.inject</groupId>
|
|
|
|
<artifactId>guice</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2023-12-13 17:19:20 -05:00
|
|
|
|
2013-07-26 21:09:50 -04:00
|
|
|
<!-- Testing -->
|
2021-01-15 09:07:06 -05:00
|
|
|
<dependency>
|
2021-05-28 12:26:03 -04:00
|
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
|
|
<artifactId>plexus-testing</artifactId>
|
2021-01-15 09:07:06 -05:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-07-26 21:09:50 -04:00
|
|
|
<dependency>
|
2016-11-06 06:13:32 -05:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
|
|
|
<artifactId>maven-resolver-connector-basic</artifactId>
|
2014-08-27 23:17:24 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2016-11-06 06:13:32 -05:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
2022-04-13 06:51:37 -04:00
|
|
|
<artifactId>maven-resolver-transport-file</artifactId>
|
2013-07-26 21:09:50 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2022-04-13 06:51:37 -04:00
|
|
|
<groupId>org.apache.maven.resolver</groupId>
|
2023-12-06 09:08:35 -05:00
|
|
|
<artifactId>maven-resolver-transport-apache</artifactId>
|
2013-07-26 21:09:50 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2013-08-26 14:08:04 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-core</artifactId>
|
|
|
|
<scope>test</scope>
|
2014-11-23 07:00:59 -05:00
|
|
|
</dependency>
|
2018-07-09 16:23:06 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
2023-12-13 17:19:20 -05:00
|
|
|
<artifactId>slf4j-simple</artifactId>
|
|
|
|
<scope>test</scope>
|
2018-07-09 16:23:06 -04:00
|
|
|
</dependency>
|
2010-08-24 18:46:07 -04:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2017-03-28 08:41:38 -04:00
|
|
|
<groupId>org.eclipse.sisu</groupId>
|
|
|
|
<artifactId>sisu-maven-plugin</artifactId>
|
2010-08-24 18:46:07 -04:00
|
|
|
</plugin>
|
2022-10-02 04:41:25 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/package-info.java</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2010-08-24 18:46:07 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
</project>
|