Install maven to report errors and solutions. Install maven to report solutions.

Source: Internet
Author: User

Install maven to report errors and solutions. Install maven to report solutions.

1. error: Non-parseable settings D: \ Program Files \ apache-maven-3.3.9 \ conf \ settings. xml: only whitespace content allowed before start tag and not T (position: START_DOCUMENT seen T... @) @ D: \ Program Files \ apache-maven-3.3.9 \ conf \ settings. xml, line 1, column 1

 

Cause: When I installed maven, I installed it according to the instructions for the help of the open source Chinese Maven library, copied the setting. xml provided by it, and then reported the error:

Solution: Delete the first line of the error that does not conform to the syntax and replace it with the first sentence in settings. xml:

<? Xml version = "1.0" encoding = "UTF-8"?>

 

2. Use the Open Source Chinese Maven library to create the maven project statement with help:

 1 mvn archetype:create -DgroupId=oschina -DartifactId=simple -DpackageName=net.oschina.simple  -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

If this statement fails, the system reports an error.

Cause:

In the help document provided by oschina, for the use of the archetype plug-in, the archetype plug-in supported by the new version of maven has discarded the original goal create, and the new generate goal is required.

For more information about archetype, see

Http://maven.apache.org/archetype/maven-archetype-plugin/create-mojo.html

Http://maven.apache.org/archetype/maven-archetype-plugin/generate-mojo.html

Solution:

The document is not clear, but after replacing the create statement with generate, the creation is successful.

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.