apache / apache/maven-archetype

[ARCHETYPE-535] DefaultPomManager.mergePoms ignores properties if the model has no dependencies

Open
#528 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

**[ajbanck](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ajbanck)** opened **[ARCHETYPE-535](https://issues.apache.org/jira/browse/ARCHETYPE-535?redirect=false)** and commented

In DefaultPomManager.java mergeModelBase the line
model.getProperties().putAll( generatedModel.getProperties() );
is nested inside ( String generatedDependencyId : generatedDependenciesByIds.keySet() )
so if the set of generated dependencies is empty the properties are not copied.

Esp. for profiles it's more common to have no dependencies resulting in missing properties

---
No further details from [ARCHETYPE-535](https://issues.apache.org/jira/browse/ARCHETYPE-535?redirect=false)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.