[ARCHETYPE-523] Failing call to archetype:generate doesn't fail calling build

Aperta
#785 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
build-system

Direzione di ricerca

Inizia riproducendo l’obiettivo archetype:generate durante la fase generate-test-resources con un archetype che non può essere compilato. Traccia come questo errore viene segnalato alla build del progetto e verifica che un errore nella generazione dell’archetype faccia fallire la build che lo contiene; l’issue non indica inizialmente alcun file o test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug priority:major

Roland Asmann opened ARCHETYPE-523 and commented

At work, we have created an Archetype for a non-project artefact that we want to setup during the build of another project (for integration testing).
So, during the Phase 'generate-test-resources', we have configured the archetype-plugin to run the generate-goal. If the Archetype can be generated without problems, all is fine. However, if the archetype can't be build (for whatever reason), the plugin fails and cancels generating the archetype, but this does not fail the build of the project I was actually building, leading to (incorrect) failures during testing.

Shouldn't the failing of the plugin automatically trigger failing of the Project that was being built? If not, would it be possible to add a parameter for this behavior?


Affects: 2.4

Lingua principale
Java
Stelle
147
Fork
186
Merge medio
11h 43m
PR unite (30g)
35

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/maven-archetype

Tutte le issue di apache/maven-archetype

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.