Page 1 of 1

Is there a basic stack-starter archetype?

Posted: Thu Feb 10, 2011 10:47 am
by richard.lyman
I'd like to initialize projects from the command-line using an archetype - what would that be for the basic stack-starter defaults?

Posted: Fri Feb 11, 2011 12:19 am
by YoungstromMJ
What do you mean you would "like to initialize projects from the command-line using an archetype". Can you describe a bit more what you're trying to do?

Mike

Posted: Fri Feb 11, 2011 8:59 am
by richard.lyman
I'd rather type

Code: Select all

mvn archetype:generate -DgroupId=org.sonatype.mavenbook -DartifactId=quickstart -Dversion=1.0-SNAPSHOT -DpackageName=org.sonatype.mavenbook -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.0 -DinteractiveMode=false
(for some values that generate the same result as the default selections from the jnlp)

than use the stack-starter jnlp.


If I'm not making sense it's OK. I'm almost done creating my own archetype and I can just use that.

Posted: Fri Feb 11, 2011 10:23 am
by UreskSJ
We did have a Maven Archetype a long time ago, but switched to the current Stack Starter because it allowed projects to be configured much better out of the box. Is there a specific reason you don't want to use the stack starter web start application?

We do have an experimental way of running the stack starter in a headless way that will generate a project from a properties file (one is generated when you run Stack Starter). I can give you more information on that if it would be helpful.

Posted: Sun Feb 13, 2011 12:10 pm
by richard.lyman
Thanks for the explanation.

I'm good for now.