I share basic example, how to create maven archetype from existing project.
Steps:
Step 1.
-cd your_project
run next command: mvn archetype:create-from-project
It then generates the directory tree of the archetype in the target/generated-sources/archetype directory.
Step 2. Move directory.
- cd target/generated-sources/archetype/
- And run command mvn install
Step 3. Move to a fresh directory and use your archetype.
- mkdir /tmp/archetype
- cd /tmp/archetype
- mvn archetype:generate -DarchetypeCatalog=local
References: https://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html
Subscribe to:
Post Comments (Atom)
Virtual Threads in Java 21: Simplified Concurrency for Modern Applications
With Java 21, Virtual Threads have redefined how we approach concurrency, offering a lightweight and efficient way to handle parallel and ...
-
SAML V2.0 SAML version 2.0 was approved as an OASIS Standard in March 2005. Approved Errata for SAML V2.0 was last produced by the SSTC on 1...
-
Introduction In today's software landscape, designing robust and scalable REST APIs is a crucial aspect of application development. Wit...
-
Spring Boot 3 Spring boot 3 Features : Spring Boot 3.0 will require Java 17 or later Jakarta EE 9 a new top-level jakarta package, replacin...
No comments:
Post a Comment