[ARCHETYPE-523] Failing call to archetype:generate doesn't fail calling build
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- build-system
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.
Description
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
- Dominant language
- Java
- Stars
- 147
- Forks
- 186
- Avg merge
- 11h 43m
- Merged PRs (30d)
- 35
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-archetype
-
help wanted maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/maven-archetype#1086 ·
Maintainers usually reply within 1 day
-
DefaultArchetypeFilesResolver.findOtherResources(level, files, sourcesFiles, languages) never applies its computed include patternsPossibly taken @adityaanikam claimed this 82 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
apache/maven-archetype#1020 ·
Maintainers usually reply within 1 day
-
Remove the unbuilt archetype-samples treePossibly taken @hutiefang76 claimed this 80 days ago. Opendependencies good first issue maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
apache/maven-archetype#1012 · 1 comment ·
Maintainers usually reply within 1 day
-
maintenance
Difficulty 5/5 Over a week Newbie friendliness 30/100
apache/maven-archetype#1057 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
apache/maven-archetype#994 · 1 reaction ·
Maintainers usually reply within 1 day
All issues in apache/maven-archetype
Similar issues
-
documentation good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
bug key bindings
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Android Bug Core Drape
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
organicmaps/organicmaps#14449 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openhab/openhab-addons#22512 ·
Maintainers usually reply within 1 day