Comments (13)
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.
This commit introduce the chnage in m2e : eclipse-m2e/m2e-core@eea96bf
@laeubi : What do you think about that ?
from eclipse.jdt.core.
@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.
Yes i'm on Windows.
from eclipse.jdt.core.
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.
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.
Not for now, i think it's a little too 'hard' for me.
from eclipse.jdt.core.
Any thoughts ?
from eclipse.jdt.core.
@stephan-herrmann @iloveeclipse can you maybe look into this?!
from eclipse.jdt.core.
@stephan-herrmann @iloveeclipse it would be nice to have a solution for the next release ;)
from eclipse.jdt.core.
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.
To bypass the problem, i'm doing a copy of the JAR used in AnnotationProcessorFactoryLoader :
It's not a clean solution but it works for me ... Maybe it can helps.
from eclipse.jdt.core.
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)
- Various tests are failing on master HEAD
- [Sealed Types] Failure to cast an Object to a generic sealed interface type HOT 5
- Generic inferral is not correctly performed when using wildcard HOT 3
- Comparator Errors HOT 3
- [Sealed Types] Strange error from ECJ: Syntax error on token "permits", permits expected HOT 11
- JDT Core throws ClassCastException: NullTypeBinding cannot be cast to class ArrayBinding HOT 4
- Bug 533327 - [9] Implement JEP 211 HOT 2
- ClasspathMultiReleaseJar no longer finds non module-info class files
- Statically importing a class confuses ECJ HOT 1
- Clean build: SourceFile(s) read twice HOT 20
- In some nestings, autocomplete stops working
- ArrayIndexOutOfBoundsException in org.eclipse.jdt.internal.compiler.parser.Scanner.internalScanIdentifierOrKeyword HOT 5
- [Sealed types] ECJ allows a class to be declared as both sealed and non-sealed HOT 4
- Error in JDT Core during AST creation when using exhaustive switch statement and @NotNull HOT 1
- [Sealed types] Disjointness behavior difference vis a vis javac HOT 2
- [Sealed types + switch expression] Internal inconsistency warning at compile time and verify error at runtime HOT 5
- ClasspathTests / JavaModelTests seem to be unstable HOT 1
- [Switch expression + Sealed Types] Suspect diagnostic about switch expression being inexhaustive HOT 2
- [Sealed Types + Enhanced Switch] Incorrect diagnostic about switch not being exhaustive
- Switch pattern matching accepts invalid case HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipse.jdt.core.