In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Although maven provides a lot of archetype for developers to use, but in the actual work, the company still needs a lot of unified, customized development framework, when using custom archetype to generate the project framework is particularly important.
This article briefly introduces the steps to build a project framework using maven3
First of all, you need to create a new maven project and use quickstart. Next, integrate the required open source framework in the project. I currently maintain a custom development framework at the following address on github:
Https://github.com/zbzbzb022/appTemplate/tree/master/genilex-apptemplate
The integration of spring,springmvc,mybatis,swagger,redis,kafka in this archetype, and the corresponding use of demo, can quickly build a development framework to achieve the development of business logic.
Subsequent maintenance will continue, such as: es,spark, and so on.
With the actual project, you need to add the following plug-ins to pom.xml
Org.apache.maven.plugins maven-archetype-plugin 2.2
Then maven must be installed on this machine. Use mvn-version to verify that the installation is correct.
Because maven-archetype-plugin is version 2.2, there will be an error when executing mvn archetype:create-from-project and the mvn.bat cannot be found, so you need to copy a copy of the local installation of maven under the bin directory through mvn.cmd to generate mvn.bat.
Ok, once copied, go to the root directory of the project and enter it from the command line window.
Execute the command mvn archetype:create-from-project under this directory
After the construction is successful, the generated-sources directory will be generated under the target directory and run mvn install under that directory after entering the archetype directory.
It is installed to the local m2 warehouse by default. If no other warehouse is specified in eclipse, it can be used by default. If it is specified, it needs to be copied to the specified warehouse.
After the copy is completed, open eclipse to create a new maven project. When selecting a template, you need to check to display the snapshot version because it is the snapshot version. Then you can create a new item through the newly created template.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.