@@ -50,12 +50,6 @@ 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-
56- @ Parameter (property = "bootstrapArchetypeVersion" , defaultValue = "7.0.204" )
57- private String bootstrapArchetypeVersion ;
58-
5953
6054 private Properties loadSourceProjectProperties () throws IOException {
6155 Properties props = new Properties ();
@@ -79,14 +73,6 @@ private void generateProject() throws MojoExecutionException{
7973 MavenXpp3Reader reader = new MavenXpp3Reader ();
8074 Model model = reader .read (getClass ().getResourceAsStream ("/META-INF/maven/com.codenameone/codenameone-maven-plugin/pom.xml" ));
8175 archetypeVersion = model .getVersion ();
82- if (archetypeVersion != null && archetypeVersion .endsWith ("-SNAPSHOT" )) {
83- String bootstrapVersion = bootstrapArchetypeVersion != null ? bootstrapArchetypeVersion .trim () : "" ;
84- if (bootstrapVersion .isEmpty ()) {
85- bootstrapVersion = "LATEST" ;
86- }
87- getLog ().info ("Detected snapshot plugin version " + archetypeVersion + ". Bootstrapping cn1app-archetype using " + bootstrapVersion + "." );
88- archetypeVersion = bootstrapVersion ;
89- }
9076 } catch (Exception ex ) {
9177 getLog ().warn ("Attempted to read archetype version from embedded pom.xml file but failed" , ex );
9278 }
@@ -118,13 +104,6 @@ private void generateProject() throws MojoExecutionException{
118104 }
119105 }
120106
121- if (archetypeCatalog != null ) {
122- String catalog = archetypeCatalog .trim ();
123- if (!catalog .isEmpty ()) {
124- props .setProperty ("archetypeCatalog" , catalog );
125- }
126- }
127-
128107 if (getLog ().isDebugEnabled ()) {
129108 request .setDebug (true );
130109 }
@@ -133,19 +112,6 @@ private void generateProject() throws MojoExecutionException{
133112 request .setProperties (props );
134113
135114 Invoker invoker = new DefaultInvoker ();
136- invoker .setInputStream (new ByteArrayInputStream (new byte [0 ]));
137- invoker .setOutputHandler (line -> {
138- if (line == null || line .contains ("Progress (" )) {
139- return ;
140- }
141- getLog ().info (line );
142- });
143- invoker .setErrorHandler (line -> {
144- if (line == null || line .contains ("Progress (" )) {
145- return ;
146- }
147- getLog ().error (line );
148- });
149115 try {
150116 InvocationResult result = invoker .execute ( request );
151117 if (result .getExitCode () != 0 ) {
0 commit comments