apache / apache/maven-shade-plugin

[MSHADE-444] Parameter localRepository uses deprecated parameter expression ${localRepository}

Open
#694 1 comment 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
188
Forks
103
Avg merge
16h 39m
Merged PRs (30d)
4

Description

**[Basil Crow](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=basil)** opened **[MSHADE-444](https://issues.apache.org/jira/browse/MSHADE-444?redirect=false)** and commented

### Reproduction steps

* Use Maven 3.9.2.
* Run `mvn clean verify` in a Maven project that uses Maven Shade Plugin.

### Expected Results

No warning

### Actual Results

```
[WARNING] * org.apache.maven.plugins:maven-shade-plugin:3.4.1
[…]
[WARNING] Mojo issue(s):
[WARNING] * Mojo shade:shade (org.apache.maven.plugins.shade.mojo.ShadeMojo)
[WARNING] - Parameter 'localRepository' uses deprecated parameter expression '${localRepository}': ArtifactRepository type is deprecated and its use in Mojos should be avoided.
```

### Anything else?

See https://maven.apache.org/docs/3.9.2/release-notes.html#notable-new-features for the root cause.

---

**Affects:** 3.4.1

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the warning with Maven 3.9.2 by running `mvn clean verify` in a project using Maven Shade Plugin 3.4.1. Trace the `localRepository` parameter in the ShadeMojo implementation and verify that the deprecated `${localRepository}` expression warning no longer appears after the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.