apache / apache/maven-release

[MRELEASE-763] release:prepare ignores invalid dependencies in inactive profiles

Open
#1,005 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
128
Forks
145
Avg merge
7h 7m
Merged PRs (30d)
3

Description

**[Mark Hobson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mihobson)** opened **[MRELEASE-763](https://issues.apache.org/jira/browse/MRELEASE-763?redirect=false)** and commented

`release:prepare` completes successfully on projects that contain invalid dependencies in inactive profiles.

For example, a POM containing the following profile containing a non-existent dependency will prepare without problems:

```
...


silly


silly
silly
1.0


...
```

Furthermore, if this dependency was changed to a SNAPSHOT version then it would still succeed. I would expect `prepare` to fail in both cases.

---

**Affects:** 2.3

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source files or tests. Start by reproducing the behavior with a POM containing the inactive profile shown and run release:prepare; done means preparation fails for both the invalid dependency and its SNAPSHOT version.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.