Skip to content

Commit 4c3680c

Browse files
committed
Default generate-app-project to local archetype catalog
1 parent a93611e commit 4c3680c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

maven/codenameone-maven-plugin/src/main/java/com/codename1/maven/GenerateAppProjectMojo.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public class GenerateAppProjectMojo extends AbstractMojo {
5050
@Parameter(property="version", defaultValue = "1.0-SNAPSHOT")
5151
private String version;
5252

53+
@Parameter(property="archetypeCatalog", defaultValue = "local")
54+
private String archetypeCatalog;
55+
5356

5457
private Properties loadSourceProjectProperties() throws IOException {
5558
Properties props = new Properties();
@@ -102,6 +105,13 @@ private void generateProject() throws MojoExecutionException{
102105
}
103106
}
104107

108+
if (archetypeCatalog != null) {
109+
String catalog = archetypeCatalog.trim();
110+
if (!catalog.isEmpty()) {
111+
props.setProperty("archetypeCatalog", catalog);
112+
}
113+
}
114+
105115
if (getLog().isDebugEnabled()) {
106116
request.setDebug(true);
107117
}

0 commit comments

Comments
 (0)