You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/01/17 22:26:37 UTC

(maven-archetype) branch master updated: keep coordinates specified by user properties

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-archetype.git


The following commit(s) were added to refs/heads/master by this push:
     new 12168e3b keep coordinates specified by user properties
12168e3b is described below

commit 12168e3ba30028457da9cb69af172745919372d9
Author: lin-yichang <li...@outlook.com>
AuthorDate: Tue Nov 25 13:35:16 2025 +0800

    keep coordinates specified by user properties
---
 .../maven/archetype/ui/generation/DefaultArchetypeSelector.java      | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeSelector.java b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeSelector.java
index afb05b6b..8fdaeeb9 100644
--- a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeSelector.java
+++ b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeSelector.java
@@ -112,11 +112,6 @@ public class DefaultArchetypeSelector implements ArchetypeSelector {
                 LOGGER.info("Archetype " + archetype + " found in catalog " + catalogKey);
             } else {
                 LOGGER.warn("Specified archetype not found.");
-                if (interactiveMode.booleanValue()) {
-                    definition.setVersion(null);
-                    definition.setGroupId(null);
-                    definition.setArtifactId(null);
-                }
             }
         }