File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
maven/codenameone-maven-plugin/src/main/java/com/codename1/maven Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments