[ARCHETYPE-512] archetype:generate while merging the pom with existing pom does not copy the attributes on the elements

Open
#781 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the archetype:generate entry point using partial=true and reproduce the merge of a template pom into an existing project. Inspect how plugin element attributes are handled during the merge, using the attached MNG-ARCHETYPE-512-archetype-common.patch as context. Done means the merged pom retains the template element attributes.

Written by the indexing model from the issue text.

Description

bug priority:major

Chetana opened ARCHETYPE-512 and commented

I am using partial=true and running the archetype on an existing project. The template pom has plugins with attributes. On archetype:generate, the template pom is getting merged with the existing pom however the attributes are missed out


Affects: 2.4

Attachments:

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-archetype

All issues in apache/maven-archetype

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.