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 — [MRESOLVER-536] Continue when FS does not support 'setLastModifiedTime' by Jurrie · Pull Request #467 · apache/maven-resolver

Conversation

@Jurrie

@Jurrie Jurrie commented Apr 15, 2024

Copy link
Copy Markdown

No description provided.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Jurrie
Jurrie marked this pull request as ready for review April 15, 2024 08:23
cstamas
cstamas approved these changes Apr 15, 2024
View reviewed changes
@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

This probably needs to be done in other transports as well.... Jetty, Java HttpClient, etc...

All reactions

Sorry, something went wrong.

Uh oh!

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

@Jurrie

Jurrie commented Apr 15, 2024

Copy link
Copy Markdown
Author

This probably needs to be done in other transports as well.... Jetty, Java HttpClient, etc...

Yes, that could very well be. It's the Java Files.setLastModifiedTime() call that fails. So if this call is used in other transports, then those will also fail.

Is there anything I can do? (I'm not very knowledgeable on the Maven Resolver project. In fact: I wouldn't even know if / how to switch to different transports 😀)

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

No, I will handle this. Many thanks for this report!

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

PR has formatting issues, locally you could mvn spotless:apply and commit changes, but again, thanks for sharing the important bit.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Jurrie
MRESOLVER-536: continue when FS does not support 'setLastModifiedTime'
e7c26f4
@Jurrie
Jurrie force-pushed the MRESOLVER-536 branch from c24f1e5 to e7c26f4 Compare April 15, 2024 13:34
@Jurrie

Jurrie commented Apr 15, 2024

Copy link
Copy Markdown
Author

PR has formatting issues, locally you could mvn spotless:apply and commit changes, but again, thanks for sharing the important bit.

I force-pushed these changes. Should be green all the way now! 😉

All reactions

Sorry, something went wrong.

Uh oh!

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

@michael-o

michael-o commented Apr 15, 2024

Copy link
Copy Markdown
Member

I am still confused. When the file is created the mtime is set anyway, no?

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

I think this one is superseded by #468

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

@michael-o see MRESOLVER-536, user explained there what and why

All reactions

Sorry, something went wrong.

Uh oh!

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

@Jurrie

Jurrie commented Apr 15, 2024

Copy link
Copy Markdown
Author

I am still confused. When the file is created the mtime is set anyway, no?

The Files.setLastModifiedTime() call will throw a FileSystemException. This is now caught and the process continues. Previously the exception was not caught and bubbled up, causing Maven to spit out the error and stop execution.

I think this one is superseded by #468

Seems like it, as the exception is caught there as well. I was wondering if this could be merged in to Maven Resolver 1.9.x? I would really like to have this in general Maven as soon as possible. I don't like running my own Frankenstein version of Maven (self-compiled version of Maven Resolver), which I'm doing now.

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

Sure, will backport it. The release of 1.9.19 is scheduled for "soon":
https://issues.apache.org/jira/issues/?jql=project%20%3D%20MRESOLVER%20AND%20fixVersion%20%3D%201.9.19

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

Backport from 2.x to 1.x is not straight forward (as 2.x contains changes in this area) but is not a problem.

All reactions

Sorry, something went wrong.

Uh oh!

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

@michael-o

michael-o commented Apr 15, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

@michael-o see MRESOLVER-536, user explained there what and why

I did already, but that also means that if a file is created no mtime is set at all and reading should fail too. I still would like to see some ref for that FS

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

I found something like this https://robindotnet.wordpress.com/2015/02/27/datetime-stamps-and-azure-file-shares/

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

Hm, actually this PR seems good enough for 1.9.x as there is not much to backport: this spot is single use of Files.setLastModifiedTime!

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

My proposal #469
Basically, just "align" and kill this one single place in whole 1.9.x codebase that uses Files and use File method that does not throws.

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 15, 2024

Copy link
Copy Markdown
Member

@Jurrie are you ok with #468 and #469 ?

All reactions

Sorry, something went wrong.

Uh oh!

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

@Jurrie

Jurrie commented Apr 15, 2024

Copy link
Copy Markdown
Author

@Jurrie are you ok with #468 and #469 ?

I sure am! I'm just glad that this is being picked up as quick as it is. You're welcome to close this one @cstamas.

cstamas reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@michael-o

michael-o commented Apr 15, 2024

Copy link
Copy Markdown
Member

I found something like this https://robindotnet.wordpress.com/2015/02/27/datetime-stamps-and-azure-file-shares/

Read it. Not very helpful.

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas

cstamas commented Apr 16, 2024

Copy link
Copy Markdown
Member

Superseded with #468 and #469

All reactions

Sorry, something went wrong.

Uh oh!

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

@cstamas cstamas closed this Apr 16, 2024
@jira-importer

jira-importer commented Jun 13, 2025

Copy link
Copy Markdown

Resolve #1193

All reactions

Sorry, something went wrong.

Uh oh!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cstamas cstamas cstamas approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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

@Jurrie @cstamas @michael-o @jira-importer
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.