Generate Maven archetype from Java code -


i want know if it's possible run maven command: archetype:generate in java code. i've tried maven embedder, library deprecated.

i want archetype:generate remote catalog, , capture required properties of archetype.

the maven command want run example:

mvn archetype:generate \     -dgroupid=com.maven \     -dartifactid=test \     -darchetypeversion=1.0-alpha-4 \     -darchetypegroupid=org.apache.maven.archetypes \     -darchetypeartifactid=maven-archetype-j2ee-simple \     -dinteractivemode=false \     -darchetypecatalog=http://repo1.maven.org/maven2/archetype-catalog.xml 

for archetypes there required properties, after request. want display these properties on gui screen, m2eclipse plugin does, user can fill in these properties.

does has suggestion?

if else fails, can use runtime.exec().


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -