[精讚] [會員登入]
176

specific instructions to create a maven archetype from local existing project.

Generate an archetype from the project

分享此文連結 //n.sfs.tw/16267

分享連結 specific instructions to create a maven archetype from local existing project.@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2024-02-23 16:03:02 最後編修
2023-11-10 11:47:17 By jung
 

here are the steps to create a Maven archetype from an existing project:

  1. Navigate to your project directory: Open a terminal and navigate to the directory of the existing project that you want to use as a template for your archetype.

  2. Generate an archetype from the project: Run the following command in your terminal:

    mvn archetype:create-from-project
    

    This command will create an archetype from your project.

  3. Locate the generated archetype: The generated archetype can be found in the target/generated-sources/archetype directory of your project.

  4. Install the archetype locally: Navigate to the target/generated-sources/archetype directory and run the following command:

    mvn install
    

    This command will install the archetype in your local repository.

  5. Use the archetype: Now you can use the archetype to generate new projects. Here is an example command:

    mvn archetype:generate -DarchetypeCatalog=local
    

    You will need to specify the groupId, artifactId, and version of the archetype.

Remember, the archetype contains all the files (like pom file, classes, readme, etc.) with variables that will be replaced during project generation. You can modify these files in the src/main/resources/archetype-resources/ directory of the archetype to fit your needs.

Please replace mvn with the appropriate command if you’re not using Maven directly.

END

你可能感興趣的文章

unknown issue after downgrade to intellij idea community version 使用社群版遇到的奇怪問題

using google Appscript to send messages through LINE NOTIFY 使用google app script傳送LINE NOTIFY

specific instructions to create a maven archetype from local existing project. Generate an archetype from the project

更新java版本後一定要做的事情 how to deal with PKIX path building failed issue after upgrade java sdk version in IDE

使用letsEncrypt替換docker容器內的nginx https憑證 using cerbot for nginx on oracle linux 9

openssl package update issue caused by cve-2022-2068 centos7 is at maintenance support phase2, only critical impact security issues will be patched

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

在windows server建立radius服務使用active directory帳號驗證 setup windows server to add radius service using active directory accounts for authentication

在新版谷歌協作平台嵌入edimax或lass空氣盒子讀取數值並視覺化 embeeded javascript to read and visualized lass json value on new google site

在apache http server停用TLS 1.0/1.1 and SSL 2.0/3.0 How to disable outdated versions of SSL/TLS on Apache

更新程式環境到wildfly18+openjdk11-phase1: upgrade mongodb server 更新程式環境到wildfly18+openjdk11-phase1: upgrade mongodb server to version 3.6

使用群暉NAS內建VPN SERVER套件的OPENVPN功能注意事項 使用群暉NAS內建VPN SERVER套件的OPENVPN功能注意事項