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 > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Reason
According to the nature of maven archetype, IDEA actually executes the mvn archetype:generate command, which needs to specify an archetype-catalog.xml file when it is executed.
The parameter to this command is-DarchetypeCatalog. Available values are: remote,internal, local, etc., which is used to specify where to get the archetype-catalog.xml file.
The default is remote, that is, from
Download the archetype-catalog.xml file in the http://repo1.maven.org/maven2/archetype-catalog.xml path.
The http://repo1.maven.org/maven2/archetype-catalog.xml file is about 3-4m, and the download speed is very slow, causing the creation process to get stuck.
Solution method
1. Add a property in the following interface, archetypeCatalog = internal
two。 If you specify-DarchetypeCatalog as internal, you can use maven's default archetype-catalog.xml instead of remote download.
a. Click Configue-> Settings
b. The VM Options configuration is as follows-DarchetypeCatalog=internal:
PS: notice the gray word in the upper right corner: for default project, not for
Current project
3. When the mvn command creates a project
Mvn archetype:generate-DarchetypeCatalog=internal
The above idea new maven project when the slow solution is the editor to share with you all the content, I hope to give you a reference, but also hope you support more.
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.