`ExecutorTool` resolves a non-ASF plugin into the test local repository
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- build-system
Direzione di ricerca
Read maven-executor/src/main/java/org/apache/maven/executor/support/ToolboxExecutorTool.java and the README first. Trace the existing localRepository(), artifactPath(), metadataPath(), and dump() behavior, then compare the path logic described for maven-verifier. Done means a non-plugin path implementation is available, Toolbox remains opt-in and documented, and the dependency/runtime wording is consistent.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
New feature, improvement proposal
The README describes maven-executor as dependency-less, and the POM agrees: the jar has no compile-scope dependencies. The only shipped ExecutorTool implementation does not, though. ToolboxExecutorTool answers localRepository(), artifactPath(), metadataPath(), and dump() by running eu.maveniverse.maven.plugins:toolbox:VERSION:gav-* through the Maven under test (ToolboxExecutorTool.java:45,134). Every consumer that needs an artifact path therefore fetches a plugin from a non-ASF group at test time, and the plugin and its transitive dependencies land in the local repository that the tests run against.
This matters for the projects that MIGRATION.md in maven-verifier tells to move here. maven-verifier computes those paths locally, and its integration tests assert on local-repository content: in maven-integration-testing alone deleteArtifacts is called 302 times and verifyArtifactPresent 84 times. After migration each of those calls depends on:
- network access to Maven Central for a plugin outside the ASF, which offline and air-gapped CI cannot provide;
- the toolbox artifacts appearing in the local repository under test, which changes what "artifact not present" assertions see;
- a pinned third-party version (
0.15.8in the deprecated constructor,version.toolboxin the POM) that ASF release policy does not cover.
The maven-it-helper Verifier in apache/maven already carries this: it wires ToolboxExecutorTool at construction and reads version.toolbox from a system property, so the core ITs cannot run without the plugin.
Proposal:
- Provide an
ExecutorToolimplementation that computes local-repository, artifact, and metadata paths without executing a plugin.dump()needs Maven, but the three path methods only need the effective local repository and the standard layout, whichmaven-verifierhas implemented for years and which Maven 3.9 and 4 share. - Keep
ToolboxExecutorToolas an opt-in fordump()and for anyone who wants the toolbox, and state in the README and Javadoc that it downloads and runs a third-party plugin. - Change the README wording from "dependency-less" to describe the runtime requirement, or keep the wording once step 1 makes it true for the default path.
Context: apache/maven-verifier#186.
- Lingua principale
- Java
- Stelle
- 5
- Fork
- 2
- Merge medio
- 4h 22m
- PR unite (30g)
- 2
Preparare l'ambiente
Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 apache/maven-executor
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
apache/maven-executor#46 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
apache/maven-executor#50 ·
-
enhancement priority:major
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
apache/maven-executor#49 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
apache/maven-executor#48 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
apache/maven-executor#47 ·
Tutte le issue di apache/maven-executor
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
oracle/javavscode#652 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenAPITools/openapi-generator#25014 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
AloisSeckar/demos-java#380 ·