apache / apache/maven-archetype

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

Open
#785 0 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
148
Forks
181
Avg merge
1d 20h
Merged PRs (30d)
8

Description

**[Roland Asmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=malice)** opened **[ARCHETYPE-523](https://issues.apache.org/jira/browse/ARCHETYPE-523?redirect=false)** 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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the archetype:generate goal during the generate-test-resources phase with an archetype that cannot be built. Trace how that failure is reported to the project build, and verify that a failed archetype generation causes the containing build to fail; the issue names no files or tests to begin with.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.