Maven archetype:generate Tuning

The mvn archetype:generate tries to fetch a remote catalog first:

[INFO] Generating project in Batch mode
[INFO] Archetype repository not defined. Using the one from [com.airhacks:javaee8-essentials-archetype:0.0.4] found in catalog remote    

In case the remote catalog is not available a previously installed archetype version is used. The flag -DarchetypeCatalog=local skips the remote lookup and significantly reduces the execution time.

The "tuned" Java EE / MicroProfile Essentials Archetype invocation resembles:

mvn -DarchetypeCatalog=local archetype:generate \
-DarchetypeGroupId=com.airhacks \
...and the QuarkEE archetype:

mvn -DarchetypeCatalog=local archetype:generate \
-DarchetypeGroupId=com.airhacks \
-DarchetypeArtifactId=quarkee-archetype \

See you at Web, MicroProfile and Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home:

Web Apps, SPA, PWA with vanilla Java Script (ES 6+), CSS 3 and WebStandards only. As simple as possible, but not simpler. See you at: (Progressive) Web apps, Single Page Apps and WebStandards airhacks workshops at MUC airport, Winter Edition the podcast:

Stay in touch:


Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments