apache / apache/maven-shade-plugin

[MSHADE-160] change default location of dependency-reduced-pom.xml

Open
#520 2 comments 0 reactions 0 assignees View on GitHub
help wanted priority:trivial
Dominant language
Java
Stars
188
Forks
103
Avg merge
16h 39m
Merged PRs (30d)
4

Description

**[Gabriele Catania](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=gcatania)** opened **[MSHADE-160](https://issues.apache.org/jira/browse/MSHADE-160?redirect=false)** and commented

The current defaults of the plugin place the dependency reduced pom alongside the pom.xml as a sibling file.

Given that it's a generated file, wouldn't it be best to place it by default inside the target directory?

either something like this:

```xml
${project.build.directory}/dependency-reduced-pom.xml
```

or, even better (to conform with conventions from other plugins):

```xml
${project.build.directory}/generated/shade/dependency-reduced-pom.xml
```

---

**Affects:** 2.2

**Issue Links:**
- [MSHADE-124](https://issues.apache.org/jira/browse/MSHADE-124) Need better plan for getting dependency-reduced-pom.xml out of basedir
(_**"is blocked by"**_)
- [MSHADE-187](https://issues.apache.org/jira/browse/MSHADE-187) Change location of the dependency reduced pom
(_**"is duplicated by"**_)
- [MSHADE-170](https://issues.apache.org/jira/browse/MSHADE-170) Outstanding questions about MSHADE-124

3 votes, 7 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the linked MSHADE-124, MSHADE-187, and MSHADE-170 issues, then inspect how the dependencyReducedPomLocation default is defined and used. Confirm which target-directory location is agreed on and verify that generated dependency-reduced-pom.xml files no longer appear beside pom.xml.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.