When Maven is having problems, you can use-X to view debug information

Source: Internet
Author: User

Today encountered a problem, to use MAVEN to run a simplest project, has been stuck in the following sentence for a long time, very depressed.

Generating project in Batch mode

Think of a variety of ways to solve the problem, this thought is a jar package download incomplete caused, wasted a long time.

The following article was found at the end.

Http://www.cnblogs.com/wardensky/p/4513372.html

Originally, you can use the plus- x to view debugging information.

In terms of experience, many of the open source does a good job on the log output, and when it comes to problems, take a look at the generated logs before you go to Google.

Add:

The final Discovery program is the stiffness here,

[DEBUG] Searching for remote Catalog:http://repo1.maven.org/maven2/archetype-catalog.xml

Workaround:

Maven command-line arguments have such a archetypecatalog, its default value is remote, when the first run succeeds (time is long), the next time you run it can completely replace the default with the following parameter values.

-darchetypecatalog=local

If you can not download the normal, you should refer to the above page content, manual download to the specified directory.

When Maven is having problems, you can use-X to view debug information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.