Skip to content

Commit

Permalink
Avoid overwriting existing Camel GAV catalog metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Sep 3, 2024
1 parent 43a0fe4 commit 0973cdd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ private static void update(ArtifactModel<?> model, CamelQuarkusExtension ext, bo
final Map<String, Object> metadata = model.getMetadata();
metadata.put(QUARKUS_VERSION, quarkusVersion);
if (model.getArtifactId() != null && model.getGroupId() != null) {
metadata.put(CAMEL_ARTIFACT, model.getGroupId() + ":" + model.getArtifactId());
metadata.put(CAMEL_VERSION, model.getVersion());
metadata.putIfAbsent(CAMEL_ARTIFACT, model.getGroupId() + ":" + model.getArtifactId());
metadata.putIfAbsent(CAMEL_VERSION, model.getVersion());
}
// lets use the camel-quarkus version as first version instead of Apache Camel
// version
Expand Down

0 comments on commit 0973cdd

Please sign in to comment.