Commit 7f0508b4 authored by liaozan's avatar liaozan 🏀

Update subModule name prefix logic

parent 25c1481a
...@@ -48,7 +48,7 @@ public class ArchetypeGenerateParam { ...@@ -48,7 +48,7 @@ public class ArchetypeGenerateParam {
public String getSubModuleNamePrefix() { public String getSubModuleNamePrefix() {
if (!StringUtils.hasText(this.subModuleNamePrefix)) { if (!StringUtils.hasText(this.subModuleNamePrefix)) {
if (this.artifactId.contains(DELIMITER)) { if (this.artifactId.contains(DELIMITER)) {
this.subModuleNamePrefix = this.artifactId.split(DELIMITER)[1]; this.subModuleNamePrefix = this.artifactId.split(DELIMITER, 2)[1];
} else { } else {
this.subModuleNamePrefix = this.artifactId; this.subModuleNamePrefix = this.artifactId;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment