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.