Maven: check the Java target in pom.xml
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 22/100
Direzione di ricerca
Start in checks/runtimes.py beside the existing project.java.pin row, then look at explain.py and docs/checks.md, which need matching rows. Tests should cover the pom.xml cases, including a hostile file and an undefined ${property}. Open pull request #64 already targets this issue, so check with the maintainers before starting. Done means the Java 11 vs 17 case reports one fail, and pytest, ruff check and ruff format --check pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem: DevReady reads the Java version from .java-version and .tool-versions, but a Maven project declares its Java target in pom.xml. On a machine with Java 11, a project that requires 17 builds fail with a compiler error and DevReady reports nothing useful.
Do:
- Add a literal pin extractor for
pom.xmlinchecks/runtimes.py, next to the existingproject.java.pinrow, so the Java check only runs when the file declares a target. - Recognize, in this order:
<maven.compiler.release>17</maven.compiler.release><release>17</release>insidemaven-compiler-plugin<maven.compiler.source>/<maven.compiler.target>(take1.8as1.8)
- Resolve a
${property}reference only when the same file defines that property; otherwise reportskiprather than guess. - Parse line-based literals only (no XML entity handling, no file content echoed), and reuse the existing version matcher.
- New id
project.java.maven; title likeJava (Maven); a mismatch is afail(a build requirement). - Add
explain.pyanddocs/checks.mdrows, a CHANGELOG line, and unit tests including a hostilepom.xml.
Done when:
- A
pom.xmlwithmaven.compiler.release17 on a Java 11 machine reports onefailnaming17and the installed version. - A
pom.xmlwith no compiler target adds no result. ${java.version}resolves when defined in the same file; an undefined property reportsskipand never echoes the file.pytest,ruff checkandruff format --checkpass.
Notes:
- Maven's real resolution (parent POMs, profiles,
~/.m2/settings.xml) is out of scope; that is why unknown specs stayskip. - Read-only like every other check: no
mvninvocation.
- Lingua principale
- Python
- Stelle
- 2
- Fork
- 3
- Merge medio
- 10h 51m
- PR unite (30g)
- 40
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Evalogical-Inc/devReady
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Evalogical-Inc/devReady#71 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Evalogical-Inc/devReady#66 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 3-5 giorni Idoneità per principianti 72/100
Evalogical-Inc/devReady#61 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
Evalogical-Inc/devReady#72 ·
I maintainer di solito rispondono entro 1 giorno
-
Read the Java pin from .sdkmanrcForse già presa @Utkarsh3725 l’ha presa oggi. Apertaenhancement good first issue help wanted
Difficoltà 3/5 Mezza giornata Idoneità per principianti 74/100
Evalogical-Inc/devReady#70 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Evalogical-Inc/devReady
Issue simili
-
fleet size/m
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
sipyourdrink-ltd/bernstein#7548 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted level 1 wocs
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
GianlucaBave/murmury#73 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
G-nn-r/lg_heatpump#52 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
agno-agi/agno#11657 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
category:codebase:gpi category:codebase:handle type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno