GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MRELEASE-1154] Never fail for unresolvable version expressions by kwin · Pull Request #230 · apache/maven-release

Conversation

@kwin

@kwin kwin commented Aug 27, 2024

Copy link
Copy Markdown
Member

expressions

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Make sure there is a JIRA issue filed
    for the change (usually before you start working on it). Trivial changes like typos do not
    require a JIRA issue. Your pull request should address just this issue, without
    pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [MRELEASE-XXX] - Fixes bug in ApproximateQuantiles,
    where you replace MRELEASE-XXX with the appropriate JIRA issue. Best practice
    is to use the JIRA issue title in the pull request title and in the first line of the
    commit message.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify -Prun-its to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

  • I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004

  • In any other case, please file an Apache Individual Contributor License Agreement.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kwin
[MRELEASE-1154] Improve exception message for unresolvable version
b4aedda
expressions
michael-o
michael-o requested changes Aug 27, 2024
View reviewed changes
Comment thread ...se-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@kwin
Never fail for locally unresolvable version expressions
9de05da
Refactor code and add tests
@kwin kwin changed the title [MRELEASE-1154] Improve exception message for unresolvable version [MRELEASE-1154] Never fail for unresolvable version expressions Aug 28, 2024
@kwin
kwin marked this pull request as ready for review August 28, 2024 09:36
@michael-o
michael-o self-requested a review August 28, 2024 09:38
kwin
kwin commented Aug 28, 2024
View reviewed changes
Comment thread ...se-manager/src/main/java/org/apache/maven/shared/release/phase/AbstractRewritePomsPhase.java
} else {
// artifact not related to current release
// the expression used to define the version of this artifact may be inherited
logInfo(

@kwin kwin Aug 28, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe logWarn is actually better here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@gnodet gnodet Sep 24, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to take into account the fact that modelVersion 4.1.0 will allow users to only define the version in the root parent, all other versions will be inferred. I would not want tons of warnings when using such setup.
If this is a supported use case, I don't see why a warning would be legit.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@michael-o michael-o mentioned this pull request Aug 31, 2024
[MRELEASE-1154] [REGRESSION] MRELEASE-1109 breaks release of Maven Su… #229
Closed
7 tasks
@michael-o

michael-o commented Aug 31, 2024

Copy link
Copy Markdown
Member

Alternative to #229.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@michael-o
michael-o requested a review from gnodet August 31, 2024 09:35
@kwin

kwin commented Sep 22, 2024

Copy link
Copy Markdown
Member Author

Any more feedback? I would like to merge this in order to fix the underlying regression.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@michael-o

michael-o commented Sep 22, 2024

Copy link
Copy Markdown
Member

Any more feedback? I would like to merge this in order to fix the underlying regression.

Will pick up tomorrow

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

michael-o
michael-o reviewed Sep 23, 2024
View reviewed changes

@michael-o michael-o left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard to tell, honestly. The CI friendy part is implemented half-heartedly and it breaks stuff. I, personally, don't understand the fuzz and the artificial complexity around the CI friendly stuff, but it should be complete or none AND not break other stuff.

@slawekjaranowski @cstamas @gnodet Any opinion?

While I prefer #229, I can live with this one.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gnodet
gnodet approved these changes Sep 24, 2024
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kwin
kwin merged commit e2745ed into master Sep 24, 2024
@kwin
kwin deleted the feature/improve-exception-message-for-unresolvable-version-expressions branch September 24, 2024 08:04
@jira-importer

jira-importer commented Jun 20, 2025

Copy link
Copy Markdown

Resolve #1328

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jira-importer jira-importer mentioned this pull request Sep 24, 2024
[MRELEASE-1154] [REGRESSION] MRELEASE-1109 breaks release of Maven Surefire #1328
Closed
@kwin kwin added the bug Something isn't working label Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@michael-o michael-o michael-o requested changes
@gnodet gnodet gnodet approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@kwin @michael-o @jira-importer @gnodet
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.