Giter Site home page Giter Site logo

Comments (13)

rdicroce avatar rdicroce commented on July 17, 2024 1

This has now been fixed (although we have no idea why the fix works) in Maven Resolver. See apache/maven-resolver#364. Now Resolver has to be released, and then Maven core has to update to the new Resolver release, and then Maven itself has to be released, and then m2e has to update to the new Maven release. No idea how long that will take but eventually this problem will go away.

from eclipse.jdt.core.

RoiSoleil avatar RoiSoleil commented on July 17, 2024

This commit introduce the chnage in m2e : eclipse-m2e/m2e-core@eea96bf

@laeubi : What do you think about that ?

from eclipse.jdt.core.

laeubi avatar laeubi commented on July 17, 2024

@to-fr I think that this could cause issues seen with Maven 3.9.x where the update of snapshots failed.
@RoiSoleil thanks for bringing this up and for the analysis, I think this is mostly visible with windows then?

from eclipse.jdt.core.

RoiSoleil avatar RoiSoleil commented on July 17, 2024

Yes i'm on Windows.

from eclipse.jdt.core.

to-fr avatar to-fr commented on July 17, 2024

Interesting. That would explain why I wasn't able to reproduce the issue with a standalone version of Maven 3.9.x on the commandline but why does the locking not occur with the Eclipse embedded maven runtime <3.9.x and m2e >2.3.0?

from eclipse.jdt.core.

laeubi avatar laeubi commented on July 17, 2024

I think as @RoiSoleil explained, the locking has occurred before but maven has not issued an error, now maven 3.9 uses file-locking it seem to having issues with that under windows as the file is permanently locked.

@RoiSoleil do you plan to propose a patch for this?

from eclipse.jdt.core.

RoiSoleil avatar RoiSoleil commented on July 17, 2024

Not for now, i think it's a little too 'hard' for me.

from eclipse.jdt.core.

RoiSoleil avatar RoiSoleil commented on July 17, 2024

Any thoughts ?

from eclipse.jdt.core.

laeubi avatar laeubi commented on July 17, 2024

@stephan-herrmann @iloveeclipse can you maybe look into this?!

from eclipse.jdt.core.

RoiSoleil avatar RoiSoleil commented on July 17, 2024

@stephan-herrmann @iloveeclipse it would be nice to have a solution for the next release ;)

from eclipse.jdt.core.

stephan-herrmann avatar stephan-herrmann commented on July 17, 2024

Please don't hold your breath waiting for me to propose as solution. I'm not an expert for JDT/Apt issues.

from eclipse.jdt.core.

RoiSoleil avatar RoiSoleil commented on July 17, 2024

To bypass the problem, i'm doing a copy of the JAR used in AnnotationProcessorFactoryLoader :

image

It's not a clean solution but it works for me ... Maybe it can helps.

from eclipse.jdt.core.

rdicroce avatar rdicroce commented on July 17, 2024

I spent some time investigating this and wrote up my findings here.

The TL;DR is that ideally Maven Resolver needs to change how it stores snapshots on disk, so that the JAR files don't need to be replaced. Failing that, the "copy JARs to a temp dir and load from there" solution proposed by @RoiSoleil is probably the only thing Eclipse could do. Though it would make more sense to implement that logic in m2e than JDT, since this really is a Maven-specific problem.

from eclipse.jdt.core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.